Rainbow controller??


    Apr 06 2007 | 2:06 pm
    I am just looking for a function which would linearly walk through the rainbow colors, preferably with a smooth luminance. I want to use it within a JSUI, and thus a javascript method would be nice. I patched something in plain Max, which could explain what I am after, but its neither elegant nor keeps the luminance smooth...
    I just wonder if there is a common method to do this in javascript...
    -- Stefan Tiedje------------x------- --_____-----------|-------------- --(_|_ ----|-----|-----()------- -- _|_)----|-----()-------------- ----------()--------www.ccmix.com

    • Apr 06 2007 | 2:31 pm
      On 06 Apr 2007, at 16:06, Stefan Tiedje wrote:
      > I am just looking for a function which would linearly walk through > the rainbow colors, preferably with a smooth luminance. > I want to use it within a JSUI, and thus a javascript method would > be nice. I patched something in plain Max, which could explain what > I am after, but its neither elegant nor keeps the luminance smooth... > > I just wonder if there is a common method to do this in javascript...
      maybe you mean to cycle through the hue values? on http://www.easyrgb.com/math.html you can find pseudo code for all sorts of format conversions, including hsl to rgb. this is easily adjusted for javascript. or you can use the hue message to the colorswatch to convert to rgb values. vb
    • Apr 07 2007 | 1:09 pm