UtilColor class

(en)A utility related to color.

(ja)カラー周りのユーティリティです。

Author Masahide Mori

First edition creation date 2021-05-14 14:25:59

Constructors

UtilColor()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Methods

random({bool isConvenient = true}) Color
(en)Returns a random color.
toDark(Color c, int level) Color
(en)Darkens the specified amount at the maximum.
toRGBAd(double r, double g, double b, {double o = 1}) Color
(en)Converts the double value specified by 0 to 1 to RGBA.
toRGBAi(int r, int g, int b, {int o = 255}) Color
(en)Converts the int value specified from 0 to 255 to RGBA.