Struct point::SimplePoint
[−]
[src]
pub struct SimplePoint { pub x: i16, pub y: i16, pub r: u16, pub g: u16, pub b: u16, pub is_blank: bool, }
Core point type. Supports position (x, y), color (r, g, b), and an is_blank flag.
Fields
x: i16
X-coordinate.
y: i16
Y-coordinate.
r: u16
Red color value.
g: u16
Green color value.
b: u16
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 SimplePoint
[src]
fn xy_rgb(x: i16, y: i16, r: u16, g: u16, b: u16) -> SimplePoint
[src]
SimplePoint CTOR. Lets you specify colors for each channel separately.
fn xy_blank(x: i16, y: i16) -> SimplePoint
[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.
fn into_pipeline_pt(&self) -> PipelinePoint
[src]
Transform a SimplePoint into a PipelinePoint for math operations.
fn xy_luma(x: i16, y: i16, luminance: u16) -> SimplePoint
[src]
SimplePoint CTOR. Uses the same intensity value for all color channels.
fn xy_red(x: i16, y: i16, red: u16) -> SimplePoint
[src]
SimplePoint CTOR. Sets only the red color channel.
fn xy_green(x: i16, y: i16, green: u16) -> SimplePoint
[src]
SimplePoint CTOR. Sets only the green color channel.
fn xy_blue(x: i16, y: i16, blue: u16) -> SimplePoint
[src]
SimplePoint CTOR. Sets only the blue color channel.
fn xy_binary(x: i16, y: i16, on: bool) -> SimplePoint
[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]
fn clone(&self) -> SimplePoint
[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 SimplePoint
[src]
impl Debug for SimplePoint
[src]
impl Default for SimplePoint
[src]
fn default() -> SimplePoint
[src]
Returns the "default value" for a type. Read more