Struct las::Color [] [src]

pub struct Color {
    pub red: u16,
    pub green: u16,
    pub blue: u16,
}

A RGB color value.

Fields

Red channel.

Green channel.

Blue channel.

Methods

impl Color
[src]

[src]

Creates a new color.

Examples

use las::Color;
let color = Color::new(1, 2, 3);
assert_eq!(1, color.red);
assert_eq!(2, color.green);
assert_eq!(3, color.blue);

Trait Implementations

impl Clone for Color
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Color
[src]

impl Debug for Color
[src]

[src]

Formats the value using the given formatter.

impl Default for Color
[src]

[src]

Returns the "default value" for a type. Read more

impl PartialEq for Color
[src]

[src]

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

[src]

This method tests for !=.