MonetPalette class

A set of 13 shades of a base color that was derived from the monet engine color calculations.

Inheritance

Constructors

MonetPalette(Map<int, Color> colors)
Creates a new MonetPalette. It's not recommended to use this constructor directly as working and ready instances are already provided by MonetColors.

Properties

alpha int
The alpha channel of this color in an 8 bit value.
no setterinherited
asMaterialColor MaterialColor
Create a MaterialColor out of this palette.
no setter
blue int
The blue channel of this color in an 8 bit value.
no setterinherited
colors Map<int, Color>
The raw map contains a set of key/values with all the shades
final
green int
The green channel of this color in an 8 bit value.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
opacity double
The alpha channel of this color as a double.
no setterinherited
red int
The red channel of this color in an 8 bit value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shade0 Color
Lightest shade of the palette, equals to white.
no setter
shade10 Color
Base color at 99% lightness.
no setter
shade50 Color
Base color at 95% lightness.
no setter
shade100 Color
Base color at 90% lightness.
no setter
shade200 Color
Base color at 80% lightness.
no setter
shade300 Color
Base color at 70% lightness.
no setter
shade400 Color
Base color at 60% lightness.
no setter
shade500 Color
Base color at 50% lightness.
no setter
shade600 Color
Base color at 40% lightness.
no setter
shade700 Color
Base color at 30% lightness.
no setter
shade800 Color
Base color at 20% lightness.
no setter
shade900 Color
Base color at 10% lightness.
no setter
shade1000 Color
Darkest shade of the palette, equals: black.
no setter
value int
A 32 bit value representing this color.
finalinherited

Methods

computeLuminance() double
Returns a brightness value between 0 for darkest and 1 for lightest.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withAlpha(int a) Color
Returns a new color that matches this color with the alpha channel replaced with a (which ranges from 0 to 255).
inherited
withBlue(int b) Color
Returns a new color that matches this color with the blue channel replaced with b (which ranges from 0 to 255).
inherited
withGreen(int g) Color
Returns a new color that matches this color with the green channel replaced with g (which ranges from 0 to 255).
inherited
withOpacity(double opacity) Color
Returns a new color that matches this color with the alpha channel replaced with the given opacity (which ranges from 0.0 to 1.0).
inherited
withRed(int r) Color
Returns a new color that matches this color with the red channel replaced with r (which ranges from 0 to 255).
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) Color?
Returns an element of the swatch table.
inherited