Kel
ReferencesVariable colour used in icon state animations. This class is called Kel after the reconstructed Proto-Indo-European root for "colour", to differentiate it from more useful and widely used colour-like types. See: https://en.wiktionary.org/wiki/Reconstruction:Proto-Indo-European/%E1%B8%B1el-
Constructors
Properties
Methods
Make
#Create a new, mixed colour.
Make
#Create a new variable colour.
Make
#Create a new variable colour.
Make
#Create a new colour with a fading transparency.
Parameters:
| stateName (string) | Name of normalised state. |
| colour (Color) | Base colour. |
Returns: Colour.
Make
#Create a new dual colour.
Parameters:
| stateName (string) | Name of normalised state which interpolates between both colours. |
| colour0 (Color) | Colour associated with state=0.0 |
| colour1 (Color) | Colour associated with state=1.0 |
Returns: Colour.
Resolve
#Resolve the colour for the given context.
Parameters:
| context (IconContext) | Context. |
Returns: Colour appropriate for context.
Convertors
| Operation | Result | Description | ||
|---|---|---|---|---|
| implicit | Color | Kel | Create a new constant colour. | |
| implicit | SpecialColour | Kel | Convert a special colour to a Kel. | |