De Stijl Neoplastic
Dynamic Equilibrium
Six neoplastic-colored rectangles hang from a tilting beam; a spring-damper drives it toward equilibrium while a slow bias keeps it gently alive.
canvasmedium complexitysubtle motion
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
Art/design portfolio heroes, screensaver-style ambient displays, dark-background contexts needing calm physics-driven motion with a neoplastic aesthetic.
When not to
Light-background layouts (background hardcoded near-black). Contexts where ambient motion competes with adjacent readable content.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the bias retarget range from 0.16 to 0.30 and shorten the interval (biasT=1.2+Math.random()*1.2) for more restless swinging. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.
Safe to edit
- block colors (RED/BLUE/YEL/PAINT constants)
- block weights and offsets (blocks array w/off fields)
- spring stiffness and damping (k=14, c=4.6)
- bias magnitude (0.16) and retarget interval (2.4s)
- beam length fraction (S*0.78)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- visibilitychange pause/resume guards
- prefers-reduced-motion static fallback
- DPR-aware canvas sizing with ctx.setTransform
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background hardcoded to near-black (#0e0e10) — edit CSS and draw() fill to change
- Reduced-motion mode renders a single static frame with no animation
More De Stijl Neoplastic components
- Grid RecomposeBlack grid lines slide between asymmetric positions with cubic easing, repartitioning red, blue, yellow, and off-white rectangles in neoplastic style.
- Boogie Pulse26 primary-color blocks travel and blink along a black asymmetric De Stijl grid over static color-field plaques, evoking neoplastic's Broadway Boogie-Woogie.
- Block FillPrimary-color rectangles wipe and rise in staggered sequence to fill cells of an asymmetric black De Stijl grid on warm white; loops continuously.
- Line WeaveHorizontal and vertical cream lines thread and interlace over primary-color blocks on a dark field, with bright nodes at crossing points during the weave…
- Counter CompositionA neoplastic grid of red, blue, and yellow cells divided by black bars rotates from 38° and settles to a gentle 15° resting angle with a slow living drift.
- Split PlaneA square canvas splits along alternating seams; two halves slide apart and reflow into new De Stijl primary-color compositions every 4.4 s.