Skip to main content

Module color_compat

Module color_compat 

Expand description

Compatibility helpers for the byte-channel accessors and f64 constructors that peniko::Color does not provide.

Traits§

ColorCompat

Functions§

rgb
Accepts f64 components and defaults alpha to 1.0.
rgba
Accepts f64 components so callers do not need repeated narrowing casts.