Giter Club home page Giter Club logo

gradient-editor's Introduction

Gradient Editor

A gradient editor in jQuery

PLEASE CONTRIBUTE!!!

I don't know jQuery and my CSS skills suck so I could really use some help / advice on best practices.

Demo

http://greggman.github.com/gradient-editor/

Goals

The goal here is to make a gradient editor that can be used to edit both CSS gradients and more importantly for me, give me data that I can use to generate gradients using canvas 2d.

See issue tracker.

Why?

For me the biggest reason is because ramp textures are super important for 3D graphics and now that WebGL makes them accessible to anyone we need a ramp editor to let people play with ramp textures.

Examples:

  • Typical lighting comes up with a multiplier from 0.0 to 1.0 usually based on the angle of the viewer to the surface vs the angle light to the surface. Instead of using that number directly, use it as a lookup into a ramp texture for much finer control. From just adjusting how the lighting looks in general to making interesting toon shaders you can do it all with a ramp texture. See this work-in-progress demo

  • Similarly, instead of having light color be a constant use another ramp texture to have things in the back lit differently than things in the front.

  • Ramp textures can be used to color particles over time. Pass in the time, use the time to lookup a color in the ramp texture.

gradient-editor's People

Contributors

greggman avatar paulirish avatar

Watchers

James Cloos avatar Avery Smets avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.