Col
Categories: [‘Colour’, ‘Utility’]
Base class: _BlipValue
Properties
a : int
UserName: A
b : int
UserName: B
g : int
UserName: G
r : int
UserName: R
Variables
black : Col
Full black sRGB colour
blackZeroAlpha : Col
Full black sRGB colour, with zero alpha
blue : Col
Blue sRGB colour
caramel : Col
Caramel sRGB colour
cyan : Col
Cyan sRGB colour
darkGrey : Col
Dark grey sRGB colour
green : Col
Green sRGB colour
grey : Col
Mid grey sRGB colour
lightGrey : Col
Light grey sRGB colour
lime : Col
Lime sRGB colour
magenta : Col
Magenta sRGB colour
orange : Col
Orange sRGB colour
pink : Col
Pink sRGB colour
red : Col
Red sRGB colour
salmon : Col
Salmon sRGB colour
transparent : Col
Fully transparent sRGB colour
turquoise : Col
Turquoise sRGB colour
white : Col
Full white sRGB colour
whiteZeroAlpha : Col
Full white sRGB colour, with zero alpha
yellow : Col
Yellow sRGB colour
Constructors
__init__(self)
__init__(self, other: Col)
Copy constructor for Col
__init__(self, r: int, g: int, b: int)
__init__(self, r: int, g: int, b: int, a: int)
__init__(self, c: Colour)
Methods
mix(self, c: Col, r: float) -> Col
toHSL(self) -> Vec
toNormalisedColour(self) -> Colour
Static Methods
fromHSL(h: float, s: float, l: float) -> Col
Special Methods
__add__(self, c: Col) -> Col
__eq__(self, c: Col) -> bool
__mul__(col, x) -> Any
Multiply the elements of the colour by a value
Parameters:
- x: A float or integer multiplier
Returns The colour with its elements multiplied by x
__ne__(self, c: Col) -> bool
__repr__(self) -> Any
String representation of the colour
__rmul__(col, x) -> Any
Multiply the elements of the colour by a value
Parameters:
- x: A float or integer multiplier
Returns The colour with its elements multiplied by x