Trait tbc::color::ColorRgba8[][src]

pub trait ColorRgba8: Copy + Clone + Default {
    fn to_565(&self) -> u16;
fn luminance(&self) -> i32;
fn sqr_distance(&self, other: &Self) -> i32;
fn mix_2_1_over_3_saturate(&self, other: &Self) -> Self;
fn mix_1_2_over_3_saturate(&self, other: &Self) -> Self;
fn mix_1_1_over_2_saturate(&self, other: &Self) -> Self;
fn contains_alpha() -> bool;
fn alpha(&self) -> u8; }

Required methods

fn to_565(&self) -> u16[src]

fn luminance(&self) -> i32[src]

fn sqr_distance(&self, other: &Self) -> i32[src]

fn mix_2_1_over_3_saturate(&self, other: &Self) -> Self[src]

fn mix_1_2_over_3_saturate(&self, other: &Self) -> Self[src]

fn mix_1_1_over_2_saturate(&self, other: &Self) -> Self[src]

fn contains_alpha() -> bool[src]

fn alpha(&self) -> u8[src]

Loading content...

Implementors

impl ColorRgba8 for Rgb8[src]

impl ColorRgba8 for Rgba8[src]

Loading content...