Struct rog_anime::AnimeImage [−][src]
pub struct AnimeImage {
pub scale: Vec2,
pub angle: f32,
pub translation: Vec2,
pub bright: f32,
// some fields omitted
}
Expand description
Container of Led
, each of which specifies a position within the image
The main use of this is to position and sample colours for the final image
to show on AniMe
Fields
scale: Vec2
angle: f32
Angle in radians
translation: Vec2
Position of the image ont he display
bright: f32
Brightness of final image, 0.0
= off, 1.0
= full
Implementations
Really only used to generate the output for including as a full const in LED_IMAGE_POSITIONS
Called after setting new angle, position, or scale to refresh the image samples, the result can then been transformed to the appropriate data for displaying
Trait Implementations
Do conversion from the nested Vec in AnimeDataBuffer to the two required packets suitable for sending over USB