Struct beam::PipelinePoint [] [src]

pub struct PipelinePoint {
    pub x: f32,
    pub y: f32,
    pub r: f32,
    pub g: f32,
    pub b: f32,
    pub is_blank: bool,
}

Working point type. Do math calculations on this 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 PipelinePoint
[src]

MIN_COLOR: f32 = 0.0

MAX_COLOR: f32 = 255.0

[src]

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

[src]

PipelinePoint 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 PipelinePoint into a SimplePoint for sending to the DAC.

[src]

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

[src]

PipelinePoint CTOR. Sets only the red color channel.

[src]

PipelinePoint CTOR. Sets only the green color channel.

[src]

PipelinePoint CTOR. Sets only the blue color channel.

[src]

PipelinePoint 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 PipelinePoint
[src]

impl Copy for PipelinePoint
[src]

impl Debug for PipelinePoint
[src]

[src]

impl Display for PipelinePoint
[src]

[src]

impl Default for PipelinePoint
[src]