Skip to main content

ColorExt

Trait ColorExt 

Source
pub trait ColorExt {
    // Required methods
    fn to_skia(&self) -> Color;
    fn to_premultiplied(&self) -> PremultipliedColorU8;
}
Expand description

Extension trait giving truce_gui_types::theme::Color the to_skia / to_premultiplied methods. Lives here (next to the tiny-skia rasterizer that consumes them) so truce-gui-types stays rasterizer-free.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§