IconsSkin
ReferencesThe icon part of a skin: the palette icons are drawn with, and the filter every icon colour passes through on its way to the screen. The filter is a stack of colour modifiers; by the time it arrives here any property references in it have been resolved, so it can run without a definition at hand. Results are memoised per input colour, since icons reuse a small set of colours many times per frame.
Constructors
IconsSkin
#Create a new icons skin.
Parameters:
| palette (IconPalette) | Palette to draw icons with. |
| filter (Modifier[]) | Modifiers applied to every icon colour, in order. Null or empty for no filter. |
Fields
Properties
Methods
Interpolate
#Interpolate between two icon skins. Palette colours blend; the filter switches half way.
Process
#public Color Process(Color colour)
Run a colour through the filter. This never throws; a filter that cannot be applied leaves colours as they are and is logged once.
Parameters:
| colour (Color) |