Struct lase::Point
[−]
[src]
pub struct Point { pub control: u16, pub x: i16, pub y: i16, pub r: u16, pub g: u16, pub b: u16, pub i: u16, pub u1: u16, pub u2: u16, }
18-byte point data for a single point.
Fields
control: u16
x: i16
y: i16
r: u16
g: u16
b: u16
i: u16
u1: u16
u2: u16
Methods
impl Point
[src]
fn xy_rgb(x: i16, y: i16, r: u16, g: u16, b: u16) -> Point
[src]
Point CTOR.
fn xy_luma(x: i16, y: i16, luminance: u16) -> Point
[src]
Point CTOR. Use the same intensity value for all color channels.
fn xy_blank(x: i16, y: i16) -> Point
[src]
Blank point CTOR.
fn xy_binary(x: i16, y: i16, on: bool) -> Point
[src]
Point CTOR. If set to on, the lasers are at full power. Otherwise, they're off.