disguise developers

Designer Plugins

Plugins for Disguise Designer software.

Colour

Base class: _BlipValue

Properties

a : float

b : float

g : float

r : float

Variables

black : Colour

blackZeroAlpha : Colour

blue : Colour

caramel : Colour

cyan : Colour

darkGrey : Colour

fromHSL : Callable

green : Colour

grey : Colour

lightGrey : Colour

lime : Colour

magenta : Colour

orange : Colour

pink : Colour

red : Colour

transparent : Colour

turquoise : Colour

white : Colour

whiteZeroAlpha : Colour

yellow : Colour

Constructors

__init__(self)

__init__(self, other: Colour)

Copy constructor for Colour

__init__(self, _: Colour, _: float)

__init__(self, r: float, arg1: float, arg2: float)

__init__(self, r: float, arg1: float, arg2: float, arg3: float)

__init__(self, col: Col)

__init__(self, hdr: HDRColour)

Methods

mix(self, c: Colour, f: float) -> Colour

toCol(self) -> Col

toHSL(self) -> Vec

toNormalisedColour(self) -> Colour

toVec(self) -> Vec

Special Methods

__add__(self, c: Colour) -> Colour

__eq__(self, c: Colour) -> bool

__mul__(col, x) -> Any

Multiply the elements of the colour by a value

Parameters:

Returns The colour with its elements multiplied by x

__ne__(self, c: Colour) -> bool

__repr__(self) -> Any

String representation of the colour

__rmul__(col, x) -> Any

Multiply the elements of the colour by a value

Parameters:

Returns The colour with its elements multiplied by x

__sub__(self, c: Colour) -> Colour