pub struct JuliaGenerator {
pub preset: FractalPreset,
pub config: FractalConfig,
}Expand description
A procedural generator for rendering Julia Set fractals onto desktop backgrounds.
Fields§
§preset: FractalPresetThe selected coordinate preset defining the Julia constant c.
config: FractalConfigShared viewport and rendering configuration.
Implementations§
Source§impl JuliaGenerator
impl JuliaGenerator
Sourcepub fn new(config: &Config) -> WallSwitchResult<Self>
pub fn new(config: &Config) -> WallSwitchResult<Self>
Constructs a randomised, non-fitted Julia Generator using target configuration.
Sourcepub fn random(monitor: &Monitor, config: &Config) -> WallSwitchResult<Self>
pub fn random(monitor: &Monitor, config: &Config) -> WallSwitchResult<Self>
Constructs a randomised, monitor-fitted Julia Set generator.
Sourcepub fn optimize_fit(&mut self, monitor: &Monitor)
pub fn optimize_fit(&mut self, monitor: &Monitor)
Automatically fits the viewport to the Julia Set boundary region.
Trait Implementations§
Source§impl FractalDescriptor for JuliaGenerator
impl FractalDescriptor for JuliaGenerator
Source§fn config(&self) -> &FractalConfig
fn config(&self) -> &FractalConfig
Retrieves the shared viewport layout configuration.
Auto Trait Implementations§
impl Freeze for JuliaGenerator
impl RefUnwindSafe for JuliaGenerator
impl Send for JuliaGenerator
impl Sync for JuliaGenerator
impl Unpin for JuliaGenerator
impl UnsafeUnpin for JuliaGenerator
impl UnwindSafe for JuliaGenerator
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> ImageEffect for T
impl<T> ImageEffect for T
Source§fn apply(&self, rgb_img: &mut ImageBuffer<Rgb<u8>, Vec<u8>>)
fn apply(&self, rgb_img: &mut ImageBuffer<Rgb<u8>, Vec<u8>>)
Applies the procedural effect in-place to a mutable image buffer.
Source§fn info(&self) -> String
fn info(&self) -> String
Returns a formatted string containing diagnostic details of the active effect.
Source§fn apply_effect(
&self,
input_path: &Path,
output_path: &Path,
) -> WallSwitchResult<()>
fn apply_effect( &self, input_path: &Path, output_path: &Path, ) -> WallSwitchResult<()>
Convenience helper: opens
input_path, runs the effect, writes output_path.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more