Struct plotters::prelude::PaletteColor [−][src]
pub struct PaletteColor<P: Palette>(_, _);
Expand description
A color in the given palette
Implementations
impl<P: Palette> PaletteColor<P>
[src]
impl<P: Palette> PaletteColor<P>
[src]pub fn pick(idx: usize) -> PaletteColor<P>
[src]
pub fn pick(idx: usize) -> PaletteColor<P>
[src]Pick a color from the palette
Trait Implementations
impl<P: Palette> Color for PaletteColor<P>
[src]
impl<P: Palette> Color for PaletteColor<P>
[src]fn to_backend_color(&self) -> BackendColor
[src]
fn to_backend_color(&self) -> BackendColor
[src]Normalize this color representation to the backend color
fn to_rgba(&self) -> RGBAColor
[src]
fn to_rgba(&self) -> RGBAColor
[src]Convert the color into the RGBA color which is internally used by Plotters
fn filled(&self) -> ShapeStyle where
Self: Sized,
[src]
fn filled(&self) -> ShapeStyle where
Self: Sized,
[src]Make a filled style form the color
fn stroke_width(&self, width: u32) -> ShapeStyle where
Self: Sized,
[src]
fn stroke_width(&self, width: u32) -> ShapeStyle where
Self: Sized,
[src]Make a shape style with stroke width from a color
Auto Trait Implementations
impl<P> RefUnwindSafe for PaletteColor<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for PaletteColor<P> where
P: Send,
P: Send,
impl<P> Sync for PaletteColor<P> where
P: Sync,
P: Sync,
impl<P> Unpin for PaletteColor<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for PaletteColor<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.