[][src]Trait plotters::style::Color

pub trait Color {
    fn rgb(&self) -> (u8, u8, u8);
fn alpha(&self) -> f64; }

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

Loading content...

Implementations on Foreign Types

impl<'_> Color for Box<&'_ dyn Color>[src]

Loading content...

Implementors

impl Color for Transparent[src]

impl<T: SimpleColor> Color for T[src]

Loading content...