ColorTriplet class
ColorTriplet by default is used to encode colors in linear space. If you need the color in sRGB see ColorTripletExtensions.toRgb.
- Available Extensions
Constructors
- ColorTriplet(double r, double g, double b)
-
Construct a new ColorTriplet.
const
Properties
- b → double
-
The blue component of the color triplet.
final
- g → double
-
The green component of the color triplet.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- r → double
-
The red component of the color triplet.
final
- 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.
override
Operators
-
operator *(
double scalar) → ColorTriplet - Multiplies two ColorTriplet objects.
-
operator +(
ColorTriplet other) → ColorTriplet - Adds two ColorTriplet objects.
-
operator -(
ColorTriplet other) → ColorTriplet - Subtracts two ColorTriplet objects.
-
operator /(
double scalar) → ColorTriplet - Divides two ColorTriplet objects.
-
operator ==(
Object other) → bool -
The equality operator.
inherited