Skip to main content

Crate wallswitch

Crate wallswitch 

Source

Re-exports§

pub use self::app::*;
pub use self::backends::*;
pub use self::cli::*;
pub use self::core::*;
pub use self::error::*;
pub use self::sys::*;
pub use self::utils::*;

Modules§

app
Orchestrates the core execution loops, quorum logic, and state management.
backends
Adapters for communicating with Desktop Environments, Window Managers, and Display Servers.
cli
Adapters for user interaction, command-line arguments, and terminal output formatting.
core
The pure Domain of the application. Contains all business rules, entities, and validation.
error
Global error definitions and centralized error handling logic.
sys
Adapters for interacting with the operating system (Filesystem, Processes, Environment).
utils
Generic, domain-agnostic utilities and extension traits used across the application.

Structs§

AuroraGenerator
A procedural generator for rendering wave-like Cosmic Aurora overlays.
AuroraParams
Pre-computed frequency coefficients that are constant across the entire frame.
AuroraRowState
Dynamic state computed once per row and shared across all pixels in that row.
FractalConfig
Unified viewport layout and rendering configuration shared by all fractal generators.
FractalPreset
A named complex-coordinate preset for escape-time fractal viewports.
JuliaGenerator
A procedural generator for rendering Julia Set fractals onto desktop backgrounds.
MandelbrotGenerator
A procedural generator for rendering Mandelbrot Set fractals onto desktop backgrounds.
NewtonGenerator
A procedural generator for rendering Newton-Raphson Basin fractals.
NewtonPreset
A named preset for the Newton-Raphson fractal.
NovaGenerator
A procedural generator for rendering Nova Julia liquid fractals.
NovaPreset
A named preset for the Nova Julia fractal.
RelaxedEscape
Intermediate result of a relaxed Newton-Raphson or Nova Julia iteration sweep.
RelaxedViewportConfig
Configuration options for fitting relaxed-convergence fractal viewports (Newton / Nova).
Star
Represents a single procedurally generated star element.
StarfieldGenerator
A procedural generator for rendering cosmic starfields and bokeh onto image backgrounds.
Viewport
Maps physical pixel coordinates (x, y) to complex plane coordinates via an affine transform defined by start, dx (step per pixel in x) and dy (step per pixel in y).
ViewportSpecs
Parameters used to construct a Viewport from physical screen dimensions.

Enums§

ProceduralEffect
Represents all supported procedural background overlay effects.

Constants§

ROTATION_STEPS
The number of angular steps used to evaluate structural rotations during optimization.
STAR_RANGE
The minimum and maximum limits for the randomized star count.

Traits§

FractalDescriptor
A polymorphic trait that defines the core algebraic structure for any procedural fractal.
ImageEffect
Trait defining the behaviour for any image-processing overlay effect.

Functions§

blend_and_vignette
Blends the computed fractal colour and vignette shadow onto a mutable ColorRGB pixel.
calculate_distance_estimator
Calculates the analytical distance estimator (DEM) to the boundary of the fractal set.
calculate_smooth_potential
Calculates the continuous potential (smooth colouring) value for quadratic escape-time fractals.
color_distance_estimator
Produces the distance-estimator colouring used by both Julia and Mandelbrot generators.
find_optimal_framing
Finds the optimal viewport rotation and zoom for a set of active complex points.
generate_zoom_candidates
julia_escape
Pure evaluation loop optimised for Julia Sets.
mandelbrot_escape
Pure evaluation loop optimised for the Mandelbrot Set.
newton_escape
Evaluates the relaxed Newton-Raphson recurrence on f(z) = z^p - 1.
nova_escape
Evaluates the relaxed Nova Julia recurrence.
optimize_fractal_viewport
Scans a complex coordinate grid and returns the optimal zoom and rotation phasor that tightly frames all points for which escape_check returns true.
optimize_relaxed_viewport
Unified fitting helper for relaxed-convergence fractals (Newton / Nova).
partition_rows
Partitions an RGB image buffer into mutable row segments for thread-safe parallel processing.
process_rows_parallel_scoped
Executes row-by-row processing in parallel using Rayon’s work-stealing thread pool.
render_fractal_parallel
Core parallel fractal renderer with built-in 2x2 Supersampling Anti-Aliasing (SSAA).
smoothstep
Standard smoothstep interpolation function.
stretch_potential
Applies power-law (gamma) stretching to enhance the visual contrast of fractal filaments.