[−][src]Trait plotters::prelude::Color
Any color representation
Required methods
fn rgb(&self) -> (u8, u8, u8)
Convert the RGB representation to the standard RGB tuple
fn alpha(&self) -> f64
Get the alpha channel of the color
Provided methods
fn mix(&self, value: f64) -> RGBAColor
Mix the color with given opacity
fn to_rgba(&self) -> RGBAColor
Convert the color into the RGBA color which is internally used by Plotters
fn filled(&self) -> ShapeStyle where
Self: Sized,
Self: Sized,
Make a filled style form the color
fn stroke_width(&self, width: u32) -> ShapeStyle where
Self: Sized,
Self: Sized,
Make a shape style with stroke width from a color