[][src]Trait plotters::prelude::Color

pub trait Color {
    fn rgb(&self) -> (u8, u8, u8);
fn alpha(&self) -> f64; fn mix(&self, value: f64) -> RGBAColor { ... }
fn to_rgba(&self) -> RGBAColor { ... } }

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...

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 intrenally used by Plotters

Loading content...

Implementors

impl Color for RGBAColor[src]

fn mix(&self, value: f64) -> RGBAColor[src]

impl Color for Transparent[src]

fn mix(&self, value: f64) -> RGBAColor[src]

fn to_rgba(&self) -> RGBAColor[src]

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

fn mix(&self, value: f64) -> RGBAColor[src]

fn to_rgba(&self) -> RGBAColor[src]

Loading content...