Struct point::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: f32
X-coordinate.
y: f32
Y-coordinate.
r: f32
Red color value.
g: f32
Green color value.
b: f32
Blue color value.
is_blank: bool
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]
fn xy_rgb(x: f32, y: f32, r: f32, g: f32, b: f32) -> PipelinePoint
[src]
PipelinePoint CTOR. Lets you specify colors for each channel separately.
fn xy_blank(x: f32, y: f32) -> PipelinePoint
[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.
fn into_simple_pt(&self) -> SimplePoint
[src]
Transform a PipelinePoint into a SimplePoint for sending to the DAC.
fn xy_luma(x: f32, y: f32, luminance: f32) -> PipelinePoint
[src]
PipelinePoint CTOR. Uses the same intensity value for all color channels.
fn xy_red(x: f32, y: f32, red: f32) -> PipelinePoint
[src]
PipelinePoint CTOR. Sets only the red color channel.
fn xy_green(x: f32, y: f32, green: f32) -> PipelinePoint
[src]
PipelinePoint CTOR. Sets only the green color channel.
fn xy_blue(x: f32, y: f32, blue: f32) -> PipelinePoint
[src]
PipelinePoint CTOR. Sets only the blue color channel.
fn xy_binary(x: f32, y: f32, on: bool) -> PipelinePoint
[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]
fn clone(&self) -> PipelinePoint
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for PipelinePoint
[src]
impl Debug for PipelinePoint
[src]
impl Default for PipelinePoint
[src]
fn default() -> PipelinePoint
[src]
Returns the "default value" for a type. Read more