Struct matricks_plugin::MatrixConfiguration
source · pub struct MatrixConfiguration {
pub width: usize,
pub height: usize,
pub target_fps: f32,
pub serpentine: bool,
pub magnification: f32,
}Expand description
Matrix configuration information to be passed to the plugin’s setup function
Fields§
§width: usizeWidth of the matrix, in number of LEDs
height: usizeHeight of the matrix, in number of LEDs
target_fps: f32FPS that the program will attempt to drive the LEDs
serpentine: boolData line alternates direction between columns or rows In other words, every other row or column is reversed
magnification: f32Magnification of the simulated matrix
Trait Implementations§
source§impl Clone for MatrixConfiguration
impl Clone for MatrixConfiguration
source§fn clone(&self) -> MatrixConfiguration
fn clone(&self) -> MatrixConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for MatrixConfiguration
impl Default for MatrixConfiguration
source§impl<'de> Deserialize<'de> for MatrixConfiguration
impl<'de> Deserialize<'de> for MatrixConfiguration
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more