Struct ilda::SimplePoint [] [src]

pub struct SimplePoint {
    pub x: i16,
    pub y: i16,
    pub r: u8,
    pub g: u8,
    pub b: u8,
    pub is_blank: bool,
}

Core point type. Supports position (x, y), color (r, g, b), and an is_blank flag.

Fields

X-coordinate.

Y-coordinate.

Red color value.

Green color value.

Blue color value.

Whether the point is semantically considered a "blanking" point. A blanking point may still encode color information, but we generally do not render these points unless we're debugging.

Methods

impl SimplePoint
[src]

MIN_COLOR: u8 = 0

MAX_COLOR: u8 = 255

[src]

SimplePoint CTOR. Lets you specify colors for each channel separately.

[src]

SimplePoint CTOR. Crates a blanking point. The blanking boolean is set to true, meaning this is semantically considered to be used for blanking purposes.

[src]

Transform a SimplePoint into a PipelinePoint for math operations.

[src]

SimplePoint CTOR. Uses the same intensity value for all color channels.

[src]

SimplePoint CTOR. Sets only the red color channel.

[src]

SimplePoint CTOR. Sets only the green color channel.

[src]

SimplePoint CTOR. Sets only the blue color channel.

[src]

SimplePoint CTOR. If set to on, the lasers are at full power. Otherwise, they're off. An "off" point is not considered a blanking point.

Trait Implementations

impl Clone for SimplePoint
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for SimplePoint
[src]

impl Debug for SimplePoint
[src]

[src]

Formats the value using the given formatter.

impl Display for SimplePoint
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for SimplePoint
[src]

[src]

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