Novelty scripting reference > Types > Color

Color

Color representation.

Members

float r (Property)
float g (Property)
float b (Property)
float a (Property)


Constructors

Color()
Color(const Color &in other)
Color(float red, float green, float blue)
Color(float red, float green, float blue, float opacity)
Color(const string &in colorName) *

*: See Predefined color names


Methods

Color Mix(const Color &in other, float value)
Mix the color with another. Value should be between 0.0f and 1.0f.

string AsString() const
Returns the color as a string.


Back to top