Color class

Color wrapper

Constructors

Color()
factory
Color.fromPointer(Pointer<spine_color_wrapper> _ptr)
Color.fromRGBA(double r, double g, double b, double a)
factory

Properties

a ↔ double
getter/setter pair
b ↔ double
getter/setter pair
g ↔ double
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
nativePtr → Pointer<NativeType>
Get the native pointer for FFI calls
no setter
r ↔ double
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(double r, double g, double b, double a) → Color
add2(double r, double g, double b) → Color
add3(Color other) → Color
clamp() → Color
dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rgb888ToColor(int value) → void
Convert packed RGB888 integer to Color (no alpha)
rgba8888ToColor(int value) → void
Convert packed RGBA8888 integer to Color
set(double r, double g, double b, double a) → Color
set2(double r, double g, double b) → Color
set3(Color other) → Color
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

parseHex(String value, int index) → double