PaletteFloat32 class
Methods
clone ()
→ PaletteFloat32
Create a copy of the Palette.
override
get (int index , int channel )
→ num
Get the the value of a specific channel
of the palette entry at index
.
If the palette has fewer colors than index
or fewer channels than
channel
, 0 will be returned.
override
getAlpha (int index )
→ num
Get the alpha channel of the palette entry at index
. If the palette has
fewer colors or channels, 0 will be returned.
override
getBlue (int index )
→ num
Get the blue channel of the palette entry at index
. If the palette has
fewer colors or channels, 0 will be returned.
override
getGreen (int index )
→ num
Get the green channel of the palette entry at index
. If the palette has
fewer colors or channels, 0 will be returned.
override
getRed (int index )
→ num
Get the red channel of the palette entry at index
. If the palette has
fewer colors or channels, 0 will be returned.
override
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set (int index , int channel , num value )
→ void
Set a specific channel
value
of the palette entry at index
. If the
palette has fewer channels than channel
, the value will be ignored.
override
setAlpha (int index , num value )
→ void
Set the alpha channel of the palette entry at index
. If the palette has
fewer colors or channels, it will be ignored.
override
setBlue (int index , num value )
→ void
Set the blue channel of the palette entry at index
. If the palette has
fewer colors or channels, it will be ignored.
override
setGreen (int index , num value )
→ void
Set the green channel of the palette entry at index
. If the palette has
fewer colors or channels, it will be ignored.
override
setRed (int index , num value )
→ void
Set the red channel of the palette entry at index
. If the palette has
fewer colors or channels, it will be ignored.
override
setRgb (int index , num r , num g , num b )
→ void
Set the RGB color of a palette entry at index
. If the palette has fewer
channels than are set, the unsupported channels will be ignored.
override
setRgba (int index , num r , num g , num b , num a )
→ void
Set the RGBA color of a palette entry at index
. If the palette has fewer
channels than are set, the unsupported channels will be ignored.
override
toString ()
→ String
A string representation of this object.
inherited
toUint8List ()
→ Uint8List
A Uint8List view of the palette buffer storage.
inherited