Struct sdl2::pixels::Palette
[−]
[src]
pub struct Palette { /* fields omitted */ }
Methods
impl Palette
[src]
fn new(capacity: usize) -> Result<Self, String>
Creates a new, uninitialized palette
fn with_colors(colors: &[Color]) -> Result<Self, String>
Creates a palette from the provided colors