pub struct Palette { /* private fields */ }
Expand description
The palette maps one Ink for each Pen
Implementations
sourceimpl Palette
impl Palette
pub fn to_gate_array(&self) -> [u8; 17]
sourcepub fn get_pen_for_ink(&self, expected: &Ink) -> Option<Pen>
pub fn get_pen_for_ink(&self, expected: &Ink) -> Option<Pen>
Get the pen that corresponds to the required ink. Ink 16 (border) is never tested
sourcepub fn to_mode3_mixed_with_mode0(&self) -> Palette
pub fn to_mode3_mixed_with_mode0(&self) -> Palette
Replicate the firsts 4 pens in order to manage special texture that contains both mode 0 and mode 3 patterns
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnwindSafe for Palette
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.