← Playground一覧に戻る
p5js

Hallucination Engine

Domain-warped particle streams fracture into chromatic layers — a flow field that folds space through itself, tearing apart in periodic glitch cascades.

Click or tap to plant a repeller node — the flow bends around it for ~5 seconds

45
28
18
900
40
15
0
50
40
10

Hallucination Engine

Particles follow a vector field — but the field doesn’t sample space directly. Instead, it first warps the sample coordinates through a second noise layer, which is itself warped by a third. The result is a doubly-folded space where flow lines spiral inward and outward simultaneously, forming geometries that cannot exist in a flat field.

Three particle layers render at slightly different positions and hues, creating a chromatic aberration effect that slowly orbits. Every few hundred frames the field tears — a brief horizontal shear that reseeds itself and snaps the geometry into a new configuration.

ParameterEffect
ChaosDomain warp intensity — how far coordinates fold before sampling. 0 = flat Perlin field; 100 = extreme self-referential folding
Chroma SplitDisplacement radius between the three chromatic layers. Higher values create wider prism separation
SpeedParticle step size per frame. High values with short trails produce streak-painting effects
ParticlesTotal count distributed equally across the three layers
Trail LengthPersistence of traces before fading. Long trails accumulate dense texture; short trails show raw motion
ScaleNoise field zoom level. Low values produce large sweeping patterns; high values create fine granular detail
PulseRhythmic breathing intensity — Chaos oscillates sinusoidally. 0 = steady; 100 = warp expands and collapses each cycle
TwistRotational bias added to every flow vector. Below center = counterclockwise spiral; above center = clockwise
Glitch RateFrequency of field-tear events. 0 = never; 100 = frantic, near-continuous tearing
ThicknessStroke weight multiplier. Combine with high Speed for brushstroke effects; with low Speed for hair-thin filaments
Color ModeAcid: lime vs ultraviolet · Plasma: magenta ↔ cyan · Void: indigo with solar flares · Bleed: full-spectrum at maximum rate · Ghost: near-white chromatic halos