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]
impl Color
pub fn rgb(red: u8, green: u8, blue: u8) -> Self
[src]
pub fn rgb(red: u8, green: u8, blue: u8) -> Self
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);
pub fn gray(gray: u8) -> Self
[src]
pub fn gray(gray: u8) -> Self
Trait Implementations
impl Clone for Color
[src]
impl Clone for Color
fn clone(&self) -> Color
[src]
fn clone(&self) -> Color
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Color
[src]
impl Copy for Color
impl Debug for Color
[src]
impl Debug for Color