FloatRgba class final Pixel Formats
A 128-bit floating-point RGBA pixel format with four 32-bit channels.
For a singleton instance of this class, and further details, see floatRgba.
Properties
- black → Float32x4
-
Black color with full transparency.
no setterinherited
- blue → Float32x4
-
Blue color with full transparency.
no setterinherited
- bytesPerPixel → int
-
Number of bytes required to store a single pixel in memory.
no setteroverride
- cyan → Float32x4
-
Cyan color with full transparency.
no setterinherited
- green → Float32x4
-
Green color with full transparency.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- magenta → Float32x4
-
Magenta color with full transparency.
no setterinherited
- max → Float32x4
-
The maximum value for the pixel format.
no setteroverride
- maxAlpha → double
-
The maximum value for the alpha channel.
no setteroverride
- maxBlue → double
-
The maximum value for the blue channel.
no setteroverride
- maxGreen → double
-
The maximum value for the green channel.
no setteroverride
- maxRed → double
-
The maximum value for the red channel.
no setteroverride
- minAlpha → double
-
The minimum value for the alpha channel.
no setteroverride
- minBlue → double
-
The minimum value for the blue channel.
no setteroverride
- minGreen → double
-
The minimum value for the green channel.
no setteroverride
- minRed → double
-
The minimum value for the red channel.
no setteroverride
- name → String
-
Human-readable name or description of the pixel format.
no setteroverride
- red → Float32x4
-
Red color with full transparency.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- white → Float32x4
-
White color with full transparency.
no setterinherited
- yellow → Float32x4
-
Yellow color with full transparency.
no setterinherited
- zero → Float32x4
-
The zero, or minimum, value for the pixel format.
no setteroverride
Methods
-
clamp(
Float32x4 pixel) → Float32x4 -
Clamps a
pixel
to the valid range of values for the pixel format.override -
compare(
Float32x4 a, Float32x4 b) → double -
Compares two pixels in the pixel format.
override
-
convert<
R> (R pixel, {required PixelFormat< R, void> from}) → Float32x4 -
Converts a pixel
from
one another format tothis
format.inherited -
copyWith(
Float32x4 pixel, {double? red, double? green, double? blue, double? alpha}) → Float32x4 -
Returns a copy of the
pixel
.override -
copyWithNormalized(
Float32x4 pixel, {double? red, double? green, double? blue, double? alpha}) → Float32x4 -
Returns a copy of the
pixel
with normalized values.override -
create(
{double? red, double? green, double? blue, double? alpha}) → Float32x4 -
Creates a new pixel with the given channel values.
inherited
-
createNormalized(
{double red = 0.0, double green = 0.0, double blue = 0.0, double alpha = 1.0}) → Float32x4 -
Creates a new pixel with the given channel values normalized to the range
[0.0, 1.0]
.inherited -
describe(
Float32x4 pixel) → String -
Returns a human-readable description of the pixel.
override
-
distance(
Float32x4 a, Float32x4 b) → double -
Returns the distance between two pixels in the pixel format.
override
-
fromAbgr8888(
int pixel) → Float32x4 -
Converts a pixel in the abgr8888 pixel format to
this
pixel format.override -
fromFloatRgba(
Float32x4 pixel) → Float32x4 -
Converts a pixel in the floatRgba pixel format to
this
pixel format.override -
getAlpha(
Float32x4 pixel) → double -
Returns the alpha channel value of the
pixel
.override -
getBlue(
Float32x4 pixel) → double -
Returns the blue channel value of the
pixel
.override -
getGreen(
Float32x4 pixel) → double -
Returns the green channel value of the
pixel
.override -
getRed(
Float32x4 pixel) → double -
Returns the red channel value of the
pixel
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toAbgr8888(
Float32x4 pixel) → int -
Converts a pixel in
this
pixel format to the abgr8888 pixel format.override -
toFloatRgba(
Float32x4 pixel) → Float32x4 -
Converts a pixel in
this
pixel format to the floatRgba pixel format.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited