Enum pdf_canvas::graphicsstate::Color[][src]

pub enum Color {
    // some variants omitted
}

Any color (or grayscale) value that this library can make PDF represent.

Methods

impl Color
[src]

Return a color from a RGB colorspace.

Example

let white  = Color::rgb(255, 255, 255);
let black  = Color::rgb(0, 0, 0);
let red    = Color::rgb(255, 0, 0);
let yellow = Color::rgb(255, 255, 0);

Return a grayscale color value.

Example

let white = Color::gray(255);
let gray  = Color::gray(128);

Trait Implementations

impl Clone for Color
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Color
[src]

impl Debug for Color
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Color

impl Sync for Color