The RGB class is a toolkit of color functions that is used by Mirage. They are accessed as Color::<function_name>(a, b, c) e.g. Color::set(col, r, g, b);
// Sets color result to color col1.
static void set(color result, color col1);
// Assign color values to color result.
static void assign(color result, double r, double g, double b);
// Adds two colors col1 and col2 to produce result.
static void add(color col1, color col2, color result);
// Multiply col by a scalar value to produce result.
static void mult(double val, color col, color result);
// Multiply two colors together to produce result.
static void mult(color col1, color col2, color result);
// Mix two colours together.
static void mix(color col1, color col2, double fraction,
color result);
// Clamp a color from 0 to 1 in R, G and B.
static void clamp(color col);