Farbe class

Constructors

Farbe(int r, int g, int b)
const
Farbe.ausHex(String hex, {Farbe ersatz = const Farbe(0x1B, 0x46, 0xF5)})
#RRGGBB; alles andere ergibt ersatz — eine Farbangabe aus dem Panel darf keine unsichtbare Kasse erzeugen.
factory

Properties

b int
final
g int
final
hashCode int
The hash code for this object.
no setteroverride
helligkeit double
Relative Helligkeit nach WCAG (0 = Schwarz, 1 = Weiß).
no setter
hex String
no setter
r int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wert int
no setter

Methods

gemischt(Farbe andere, double anteil) Farbe
Mischt zu andere hin; anteil 0 = diese Farbe, 1 = die andere.
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 ==(Object other) bool
The equality operator.
override

Static Methods

istHex(String hex) bool
Sieht eine Farbangabe wie #RRGGBB aus?