blog games developers documentation portfolio gallery

Documentation:

ChangeHSB()

void ChangeHSB(float deltaHue, float deltaSaturation, float deltaBrightness)



Same as using the functions Hue(), Saturation() and Brightness(), only faster. Since all 3 operations are done in 1 loop.

Example:

if(GUI.Button(new Rect(0,0,200,25), "Go nuts")) {
myTexture.ChangeHSB(-0.5f, 0.5f, 0.5f); // change colors, make them intenser and brighter
}








follow us