Designer Plugins
Plugins for Disguise Designer software.
Plugins for Disguise Designer software.
A floating-point RGBA representation of a Colour
This class does not hold any colour space information, therefore the precise meaning of the values will depend on the context in which it is used.
Base class: _BlipValue
The alpha (transparency) component of the colour.
Between 0-1, 0 is fully transparent, 1 is fully opaque.
UserName: A
The blue component of the colour.
Between 0-1 if an sRGB value, may be outside this range otherwise.
UserName: B
The green component of the colour.
Between 0-1 if an sRGB value, may be outside this range otherwise.
UserName: G
The red component of the colour.
Between 0-1 if an sRGB value, may be outside this range otherwise.
UserName: R
Copy constructor for Colour
Mixes two colours together.
Performs a linear interpolation between this and another colour based on a mix factor f.
Parameters:
Returns A new colour that is a mix between this and the given colour.
Converts the colour to an 8-bit Col structure.
Returns An 8-bit Col representation of this colour.
Convert the colour to HSL (Hue, Saturation, Luminance) format.
Returns A vector containing the hue, saturation, and luminance values of the colour.
Converts the colour to normalised float form.
Returns A new Colour object with RGBA components limited to the range 0-1.
Converts the colour object to a vector.
Returns A vector containing the RGB components of this colour.
Adds two colours
Performs a component-wise addition of the two colours, including alpha. Values above one are saturated at one.
Parameters:
Returns The resulting colour
Equality comparison operator for colours.
Parameters:
Returns True if all RGBA components of the colours are equal, false otherwise.
Multiply the elements of the colour by a value
Parameters:
Returns The colour with its elements multiplied by x
Checks if two colours are not equal.
Parameters:
Returns True if any of the RGBA components of the colours are not equal, false otherwise.
String representation of the colour
Multiply the elements of the colour by a value
Parameters:
Returns The colour with its elements multiplied by x
Subtracts another colour from this one.
Performs a component-wise subtraction of the given colour from this one. Values below zero are saturated at zero.
Parameters:
Returns The resulting colour.