pub struct SpiralParams {
pub density: f64,
pub rotation: f64,
pub expansion: f64,
pub clockwise: bool,
pub frequency: f64,
}Expand description
Parameters for configuring spiral pattern effects
Fields§
§density: f64How tightly wound the spiral is (0.1-5.0)
rotation: f64Base rotation angle in degrees (0-360)
expansion: f64How quickly spiral expands from center (0.1-2.0)
clockwise: boolDirection of spiral rotation
frequency: f64Speed of spiral animation (0.1-10.0)
Trait Implementations§
Source§impl Clone for SpiralParams
impl Clone for SpiralParams
Source§fn clone(&self) -> SpiralParams
fn clone(&self) -> SpiralParams
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 SpiralParams
impl Debug for SpiralParams
Source§impl Default for SpiralParams
impl Default for SpiralParams
Source§impl PatternParam for SpiralParams
impl PatternParam for SpiralParams
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 SpiralParams
impl RefUnwindSafe for SpiralParams
impl Send for SpiralParams
impl Sync for SpiralParams
impl Unpin for SpiralParams
impl UnwindSafe for SpiralParams
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