Skip to main content

sampler

Function sampler 

Source
pub fn sampler(
    spec: ConsoleSpec,
    palette: &Palette,
    glyphs: &[char],
    panels: SamplePanels,
) -> GlyphBuffer
Expand description

A buffer of a console of spec: the top half shows every glyph in glyphs in a grid; the bottom half shows every palette colour as a swatch plus its name, a line of sample text and the game’s panels.