Constructs Color from float components. If no components present color will default to white ([1, 1, 1, 1])
Alias to allow easy data access
Alias to data
Returns color component in 8 bit form
Clamps color values between min and max
Returns copy of color
Darkens color by p_amount
Returns color component in 8 bit form
Returns h component of hsv
Inverts color
Returns the linear interpolation with another color
Lightens color by p_amount
Returns the luminance of the color in the [0.0, 1.0] range
opBinary x [+, -, *, /, %] y
opCast cast(x) y
opCmp x [< > <= >=] y
opEquals x == y
opOpAssign x [+, -, *, /, %]= y
opUnary [-, +, --, ++] x
Returns pointer to data
Returns color component in 8 bit form
Returns s component of hsv
Sets color from ANSI256 index
Sets color from ANSI index
Sets color to hexadecimal value
Sets color from hsv
Sets color from html string in format #RRGGBB
Returns closest ANSI256 color index
Returns closest ANSI8 color index
Returns closest bash ANSI8 color string
Returns closest bash ANSI256 color string
Returns hash
Returns hex representation of color in format 0xrrggbb
Returns html representation of color in format #RRGGBB If p_alpha is true returns color in format #RRGGBBAA
Returns string representation of color: [1.00, 1.00, 1.00, 1.00]
Returns bash truecolor string
Returns v component of hsv
Color data
Color structure with data accesible with [N] or swizzling