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