Shade
ReferencesImmutable collection of shading colours for shapes.
Constructors
Shade
#public Shade(Color apex, Color edge, Color text)
Palette constructor.
Parameters:
| apex (Color) | apex fill colour. |
| edge (Color) | Edge colour |
| text (Color) | Text colour. |
Shade
#Palette constructor.
Parameters:
| apex (Color) | Apex fill colour. |
| slab (Color) | Slab fill colour. |
| edge (Color) | Edge colour |
| text (Color) | Text colour. |
| overlay (FillDescription) | Optional filter fill. |
Shade
#public Shade(Color apex)
Palette constructor with sensible default values for most settings based on a guiding apex colour.
Parameters:
| apex (Color) | Apex fill colour. |
Properties
Edge
#public Color Edge { get; }
Gets the colour used for the shape edges. This is usually a much darker shade of the Apex colour.
Slab
#public Color Slab { get; }
Gets the colour of the slab sides of the shape. This is usually a somewhat darker shade of the Apex colour.
Text
#public Color Text { get; }
Gets the text colour of the shape. This is usually a foreground shade of the Apex colour.
Methods
Combine
#Overlay a colour onto this shade.
Parameters:
| filter (Color) | Colour to filter. |
Returns: Modified shade.
Fade
#Multiply the alpha value colours in this palette with the given factor.
Parameters:
| factor (float) | Fading factor. 0=fully transparent, 1=no change. |
Returns: Modified palette.
Interpolate
#Interpolate between this shade and another.