pub struct PerlinParams {
pub octaves: u32,
pub persistence: f64,
pub scale: f64,
pub seed: u32,
}Expand description
Parameters for configuring Perlin noise pattern effects
Fields§
§octaves: u32Number of noise layers (1-8)
persistence: f64How quickly amplitudes diminish (0.0-1.0)
scale: f64Scale of the noise (0.1-5.0)
seed: u32Random seed for noise generation
Trait Implementations§
Source§impl Clone for PerlinParams
impl Clone for PerlinParams
Source§fn clone(&self) -> PerlinParams
fn clone(&self) -> PerlinParams
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 PerlinParams
impl Debug for PerlinParams
Source§impl Default for PerlinParams
impl Default for PerlinParams
Source§impl PatternParam for PerlinParams
impl PatternParam for PerlinParams
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 PerlinParams
impl RefUnwindSafe for PerlinParams
impl Send for PerlinParams
impl Sync for PerlinParams
impl Unpin for PerlinParams
impl UnwindSafe for PerlinParams
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