[][src]Trait imgdata::color::Color

pub trait Color {
    fn r(&self) -> u8;
fn g(&self) -> u8;
fn b(&self) -> u8;
fn a(&self) -> u8;
fn rgb(&self) -> [u8; 3];
fn rgba(&self) -> [u8; 4];
fn hex(&self) -> String;
fn hexa(&self) -> String;
fn paint(&self, text: &str) -> String;
fn compare(&self, other: &Rgba<u8>) -> Ordering; }

Required methods

fn r(&self) -> u8

fn g(&self) -> u8

fn b(&self) -> u8

fn a(&self) -> u8

fn rgb(&self) -> [u8; 3]

fn rgba(&self) -> [u8; 4]

fn hex(&self) -> String

fn hexa(&self) -> String

fn paint(&self, text: &str) -> String

fn compare(&self, other: &Rgba<u8>) -> Ordering

Loading content...

Implementations on Foreign Types

impl Color for Rgba<u8>[src]

Loading content...

Implementors

Loading content...