View Single Post
Old 18th August 2004, 15:48   #220
TomyLobo
Major Dude
 
TomyLobo's Avatar
 
Join Date: Feb 2004
Location: Germany
Posts: 580
shorter:
red=if(red,red+1/128,0);
green=red;
blue=red;

even shorter:
red=assign(green,assign(blue,if(red,red+1/128,0)));

Color modifiers always have red==green==blue before the "level" section is executed, so if you want a monochrome color modifier (one that does the same to all colors), just modify one color and assign its value to the other colors.

If you can't say something nice, say something surrealistic.
TomyLobo is offline   Reply With Quote