Skip to main content

Shades

Trait Shades 

Source
pub trait Shades {
    // Required methods
    fn ground(&self, rgb: Rgb) -> Shade;
    fn glyph(&self, rgb: Rgb) -> Shade;
    fn shape(&self, rgb: Rgb) -> Shade;
}
Expand description

What a frame’s colours are drawn in.

Required Methods§

Source

fn ground(&self, rgb: Rgb) -> Shade

A cell’s background in rgb.

Source

fn glyph(&self, rgb: Rgb) -> Shade

A glyph in rgb.

Source

fn shape(&self, rgb: Rgb) -> Shade

A rectangle, or a sprite painted solid, in rgb.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§