kantholtz / norne

A storytelling engine
MIT License
0 stars 0 forks source link

util.color #8

Closed kantholtz closed 10 years ago

kantholtz commented 10 years ago

Create color objects with convenient getter and setter methods for colors. It would be pretty easy to just adjust just the hue of a color value but retrieve an rgb(...)-String when needed. Overwrite toString to return the colors hex-code or something like that.

They could also encapsulate ranges as described in #6

kantholtz commented 10 years ago

Would work really nice with the new architecture.

Set a complex color object with lane.color. If the renderer uses color: 'gradient', the gradient gets calculated based on the range defined in the util.color object. If the renderer uses color: 'solid', a random value gets returned when a range was given, otherwise the defined color.