NeomFractalEngine class

Central fractal visualization engine for mobile and web.

Uses Flutter fragment shaders (GPU-accelerated via Impeller/CanvasKit). Falls back to CPU-rendered CustomPainter on platforms where fragment shaders are not available (e.g. web HTML renderer).

Inheritance

Constructors

NeomFractalEngine()

Properties

breath double
no setter
centerX double
no setter
centerY double
no setter
config FractalConfig
no setter
currentShader FragmentShader?
no setter
currentState → NeomNeuroState
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
neuro double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadersLoaded bool
no setter
time double
no setter
useFallback bool
no setter
zoom double
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
computeMandelbrotAt(double cx, double cy) double
CPU-computed Mandelbrot iteration count for a single point. Used by NeomFractalFallbackPainter when shaders aren't available.
configureShader(Size size) → void
Configure the current shader with all uniforms for this frame.
dispose() → void
Discards any resources used by the object.
inherited
loadShaders() Future<void>
Load fragment shader programs from assets. Each unique .frag file is loaded once and shared across fractal types.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
paletteAt(double t) Color
Palette lookup for CPU fallback.
pan(double dx, double dy) → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
resetView() → void
setNeuroState(NeomNeuroState state) → void
Set fractal based on neuro-state.
tick(double dt) → void
Update animation frame.
toString() String
A string representation of this object.
inherited
updateFromAudio({required double breath, required double neuro}) → void
Update audio-reactive parameters from the painter engine.
zoomBy(double factor) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited