Trait fastanvil::Palette

source ·
pub trait Palette {
    // Required method
    fn pick(&self, block: &Block, biome: Option<Biome>) -> Rgba;
}
Expand description

Palette can be used to take a block description to produce a colour that it should render to.

Required Methods§

source

fn pick(&self, block: &Block, biome: Option<Biome>) -> Rgba

Implementors§