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: Vec2angle: 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

Generate the base image from inputs. The result can be displayed as is or updated via scale, position, or angle then displayed again after update().

Trait Implementations

Do conversion from the nested Vec in AnimeDataBuffer to the two required packets suitable for sending over USB

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.