[][src]Trait fastanvil::Palette

pub trait Palette {
    pub fn pick(&self, block: &Block<'_>, biome: Option<Biome>) -> Rgba;
}

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

Required methods

pub fn pick(&self, block: &Block<'_>, biome: Option<Biome>) -> Rgba[src]

Loading content...

Implementors

impl Palette for RenderedPalette[src]

Loading content...