Ukiyo-e Woodblock
Koi Ripple
A kohaku koi undulates across a dark pond as four concentric ripple rings expand and coral petals drift, all rendered in woodblock palette.
canvasmedium complexitymoderate 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
Ambient hero backgrounds with a Japanese or nature theme; dark-mode decorative panels; looping art screensavers.
When not to
Light backgrounds (pond color hardcoded dark navy). Layouts needing legible text overlays — ripples and fish compete for attention.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change koi markings to red-and-white by setting CORAL='#c0392b' and CORAL2='#e74c3c', then increase petal count from 7 to 14 by changing PET=7 to PET=14. 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
- koi size (len=R*0.30, wid=R*0.105)
- ripple ring count (RINGS=4) and speed (t*0.22)
- petal count (PET=7) and drift speed (t*0.012)
- color palette (CORAL, CORAL2, CREAM, WATER, WATER2)
- koi swim sway amplitude (R*0.06, R*0.05)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper and 'use strict'
- visibilitychange stop/go guard
- DPR-aware canvas resize with setTransform
- reduce flag early-exit with static frame(2.2)
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background and pond color are hardcoded — must edit CSS and palette vars to change from dark navy
- No pointer interactivity; ripples are purely time-driven, not click-triggered
- Koi body redrawn every frame with no offscreen cache — minor cost on slow devices
More Ukiyo-e Woodblock components
- Wave CrestA stylized ukiyo-e-inspired cresting wave with curling foam claws, an indigo sea gradient, Fuji-like cone, and coral sun — all drawn procedurally on canvas.
- Rain Lines96 diagonal rain streaks fall over layered indigo/coral hill bands and a village silhouette beneath a bokashi cream sky with a pale moon disc.
- Crane Glide7 cranes with flapping wings glide across flat indigo/teal bands past a coral sun and Mt. Fuji silhouette, with scrolling wave crests.
- Blossom Fall110 sakura petals drift and flutter down over an indigo-to-coral bokashi sky with a stylised woodblock mountain and bare branch silhouette.
- Mountain ConeSnow-capped Fuji cone under a bokashi sky cycling night-dawn-day-dusk every 24s; sun/moon disc arcs overhead while 7 cranes drift across.
- Bamboo SwayNine indigo bamboo stalks sway with sine-wave lean and leaf flicker against a cream bokashi sky and low coral moon, rendered in flat woodblock style.