Sergei Basharov
Sergei Basharov

Reputation: 53850

Generate colors with JavaScript

I want to add functionality to my application that randomly generates a color scheme based on some color, for example #0080C8. So, when I click a button, it takes the base color and generates a list of colors, each generated with its own parameter, for example, lighten by 20% for one, and darken by 10% for another one. So, what I wonder about, is there a ready-to-use JS library that has such methods like darken, lighten, and so on?

Upvotes: 0

Views: 386

Answers (2)

albert
albert

Reputation: 8153

color blender is an oldie but a goodie. i love it. http://meyerweb.com/eric/tools/color-blend/

Upvotes: 0

Rob W
Rob W

Reputation: 348992

See this JQuery plugin:

http://www.xarg.org/project/jquery-color-plugin-xcolor/

Upvotes: 1

Related Questions