pub struct AuroraParams {
pub intensity: f64,
pub speed: f64,
pub waviness: f64,
pub layers: u32,
pub height: f64,
pub spread: f64,
}Expand description
Configuration parameters for the Aurora Borealis effect
Fields§
§intensity: f64Controls overall brightness and contrast (0.1-2.0)
speed: f64Controls animation speed (0.1-5.0)
waviness: f64Controls wave distortion amount (0.1-2.0)
layers: u32Number of overlapping aurora curtains (1-5)
height: f64Controls vertical thickness of bands (0.1-1.0)
spread: f64Controls vertical spacing between bands (0.1-1.0)
Trait Implementations§
Source§impl Clone for AuroraParams
impl Clone for AuroraParams
Source§fn clone(&self) -> AuroraParams
fn clone(&self) -> AuroraParams
Returns a duplicate 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 Debug for AuroraParams
impl Debug for AuroraParams
Source§impl Default for AuroraParams
impl Default for AuroraParams
Source§impl PatternParam for AuroraParams
impl PatternParam for AuroraParams
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Description of the parameter for CLI help text
Source§fn param_type(&self) -> ParamType
fn param_type(&self) -> ParamType
Type of the parameter
Source§fn default_value(&self) -> String
fn default_value(&self) -> String
Default value as a string
Source§fn validate(&self, value: &str) -> Result<(), String>
fn validate(&self, value: &str) -> Result<(), String>
Validate a string value for this parameter
Source§fn parse(&self, value: &str) -> Result<Box<dyn PatternParam>, String>
fn parse(&self, value: &str) -> Result<Box<dyn PatternParam>, String>
Parse a string value into the appropriate type
Source§fn sub_params(&self) -> Vec<Box<dyn PatternParam>>
fn sub_params(&self) -> Vec<Box<dyn PatternParam>>
List of sub-parameters if this is a composite type
Source§fn clone_param(&self) -> Box<dyn PatternParam>
fn clone_param(&self) -> Box<dyn PatternParam>
Clone implementation for trait object
Auto Trait Implementations§
impl Freeze for AuroraParams
impl RefUnwindSafe for AuroraParams
impl Send for AuroraParams
impl Sync for AuroraParams
impl Unpin for AuroraParams
impl UnwindSafe for AuroraParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more