OMeshColorSpace enum
A color space defines how colors are interpolated in a mesh gradient.
There are several ways to generate colors that are in between two colors. Each color space has its own way of doing this.
Dont confuse this with the ColorSpace in the Color class which defines how colors are represented in memory.
Values
- linear → const OMeshColorSpace
-
The most common way of interpolating colors, this performs linear interpolation in the RGB color space.
- lab → const OMeshColorSpace
-
Interpolates colors in the CIELAB color space.
This color space is designed to be perceptually uniform, meaning that the difference between two colors is proportional to the difference in their perceived brightness.
- xyY → const OMeshColorSpace
-
Interpolates colors in the CIE xyY color space.
This colorspace is very reliant on luminance. Interpolating to and from black causes artifacts. Try adding at least a value of 1 to any of the color channels (R, G, or B) to avoid this.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
OMeshColorSpace> - A constant List of the values in this enum, in order of their declaration.