Trait aoclib::geometry::map::tile::ToRgb

source ·
pub trait ToRgb {
    // Required method
    fn to_rgb(&self) -> [u8; 3];
}
Expand description

A type implementing ToRgb can be converted to a single color.

This is useful for rendering map tiles.

Required Methods§

source

fn to_rgb(&self) -> [u8; 3]

Implementors§