View Single Post
Old 12th May 2003, 12:19   #89
Major Dude
sidd's Avatar
Join Date: May 2003
Location: Australia
Posts: 1,353
nice work!! few problems with it obviously, cuz its simplifying a complicated process into only a few lines. luminuesence isnt scalar, nor is it dithered between colours correctly. Same deal with saturation. for example, 0 lum should make it black regarless.
all values should be between 0-1, or something else as long as it is finite. And the line 'hue2=hue*tpi' should be just hue*pi.

Im gonna use your code when i just need a nice color fading code, but ill stick with the other way for accuracy.
sidd is offline   Reply With Quote