toRgb8 method

RayRgb8 toRgb8()

Converts this color to 8-bit RGB representation.

Implementation

RayRgb8 toRgb8() => this is RayRgb8 ? this as RayRgb8 : toRgb16().toRgb8();