pub trait RasterColorExt {
// Required method
fn quantize_raster_color(self) -> Rgba8;
}Expand description
Converts a scene color to the bytes used by a raster cache key.
Required Methods§
Sourcefn quantize_raster_color(self) -> Rgba8
fn quantize_raster_color(self) -> Rgba8
Clamps and rounds each channel to the nearest byte.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".