copyWithNormalized method
override
Returns a copy of the pixel
with normalized values.
Subclasses override this method to provide named parameters for channels.
Example
print(abgr8888.copyWithNormalized(0x12345678, red: 1.0)); // 0xFF345678
print(floatRgba.copyWithNormalized(Float32x4(0.1, 0.2, 0.3, 0.4), red: 0.5)); // [0.5, 0.2, 0.3, 0.4]
Implementation
@override
Float32x4 copyWithNormalized(
Float32x4 pixel, {
double? red,
double? green,
double? blue,
double? alpha,
}) {
return copyWith(pixel, red: red, green: green, blue: blue, alpha: alpha);
}