describe method
- Float32x4 pixel
override
Returns a human-readable description of the pixel.
This is used in the default implementation of Buffer.toString.
It is preferred that the result values are padded to a fixed width, and
that the result is a single line; for example, 0x12345678
or [0.1, 0.2, 0.3, 0.4]
.
Implementation
@override
String describe(Float32x4 pixel) {
final output = StringBuffer('[');
output.write(pixel.x.toStringAsFixed(2));
output.write(', ');
output.write(pixel.y.toStringAsFixed(2));
output.write(', ');
output.write(pixel.z.toStringAsFixed(2));
output.write(', ');
output.write(pixel.w.toStringAsFixed(2));
output.write(']');
return output.toString();
}