Color class
Methods
add (Color color )
→ Color
addColors (Color color1 , Color color2 )
→ Color
addScalar (num s )
→ Color
clone ()
→ Color
convertGammaToLinear ([double ? gammaFactor ])
→ Color
convertLinearToGamma ([double ? gammaFactor ])
→ Color
convertLinearToSRGB ()
→ Color
convertSRGBToLinear ()
→ Color
copy (Color color )
→ Color
copyGammaToLinear (Color color , [double gammaFactor = 2.0 ])
→ Color
copyLinearToGamma (Color color , [double gammaFactor = 2.0 ])
→ Color
copyLinearToSRGB (Color color )
→ Color
copySRGBToLinear (Color color )
→ Color
equal (Color color )
→ bool
equals (Color c )
→ bool
fromArray (List <double > array , [int offset = 0 ])
→ Color
fromBufferAttribute (BufferAttribute <NativeArray<num > > attribute , int index )
→ Color
getHex ([String colorSpace = SRGBColorSpace ])
→ int
getHexString ([String colorSpace = SRGBColorSpace ])
→ String
getHSL (Map <String , dynamic > target , [String colorSpace = LinearSRGBColorSpace ])
→ Map <String , dynamic >
getRGB (dynamic target , [String colorSpace = LinearSRGBColorSpace ])
→ dynamic
getStyle ([String colorSpace = SRGBColorSpace ])
→ dynamic
isBlack ()
→ bool
lerp (Color color , num alpha )
→ Color
lerpColors (Color color1 , Color color2 , num alpha )
→ Color
lerpHSL (Color color , num alpha )
→ Color
multiply (Color color )
→ Color
multiplyScalar (num s )
→ Color
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offsetHSL (double h , double s , double l )
→ Color
set <T > (T? value )
→ Color
setColorName (String style , [String colorSpace = SRGBColorSpace ])
→ Color
setHex (int hex , [String colorSpace = SRGBColorSpace ])
→ Color
setHSL (double h , double s , double l , [String colorSpace = LinearSRGBColorSpace ])
→ Color
setRGB ([double ? r , double ? g , double ? b , String colorSpace = LinearSRGBColorSpace ])
→ Color
setScalar (double scalar )
→ Color
setStyle ([String style = '' , String colorSpace = SRGBColorSpace ])
→ Color
sub (Color color )
→ Color
toArray ([dynamic array , int offset = 0 ])
→ dynamic
dart array can not expand default
so have to set array length enough first.
toJSON ()
→ int
toString ()
→ String
A string representation of this object.
inherited