gradient-generator
A small JavaScript library for creating smooth gradients.
What is it?
A library which you can use to map values between 0.0 and 1.0 to colors by defining gradients. For example you can turn the output of a
noise function into a nicely colored image:
!
alt tag !
alt tag
Getting Started
Download the [development][max] or the [minified][min] version.
[max]: https://raw.githubusercontent.com/zsoltc/gradient-generator/master/dist/gradient-generator.js
[min]: https://raw.githubusercontent.com/zsoltc/gradient-generator/master/dist/gradient-generator.min.js
Example usage:
``
html
``
There are also some canvas examples which might be more interesting than logging RGB values in the console.