Node: Modifying Colors, Next: , Previous: Color Operators, Up: Color Reference



Modifying

void set_name (const string s) Function
Sets name to s. use_name is not reset.

void set_use_name (const bool b) Function
Sets use_name to b.

void modify (const real r, [const real g = 0, [const real b = 0]]) Function
Adds r, g, and b to red_part, green_part, and blue_part, respectively. Following the addition, if red_part, green_part, and/or blue_part is greater than 1, it is reduced to 1. If it is less than 0, it is increased to 0.

void set_red_part (const real q) Function
void set_green_part (const real q) Function
void set_blue_part (const real q) Function
Let p stand for red_part, green_part, or blue_part, depending upon which function is used. If 0 <= q <= 1, p is set to q. If q < 0, p is set to 0. If q > 1, p is set to 1.