Struct cdg::RgbColor [] [src]

pub struct RgbColor(_);

A 12-bit RGB color

Methods

impl RgbColor
[src]

Convert from an RGB triplet. The individual channels are each truncated to four bits.

The red component evenly scaled to 0..255

The green component evenly scaled to 0..255

The blue component evenly scaled to 0..255

Trait Implementations

impl Copy for RgbColor
[src]

impl Eq for RgbColor
[src]

impl PartialEq for RgbColor
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for RgbColor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RgbColor
[src]

Formats the value using the given formatter.