Paint Swirl
Two paints swirled into each other around a center, with glossy highlights, chunky pixels and an optional CRT finish; the cursor stirs it and a click spins a whirlpool.
pixikit.com/docs/effects/paint-swirl
Customize
Color1
Color2
Color3
Contrast3.5
Lighting0.40
Swirl0.25
Speed1.00
Rotation speed0.0
Scale1.00
Detail5
Pixel size1.5
Crt0.00
Mouse interaction
Mouse strength1.00
Click swirl
Intro
Light mode
Opacity1.00
Props
22| Name | Type | Default | Description |
|---|---|---|---|
color1 | string | "#DE443B" | Main paint color. |
color2 | string | "#006BB4" | Second paint color, swirled into the first. |
color3 | string | "#162325" | Color of the gaps between the two paints. |
contrast | number | 3.5 | How sharply the paints separate. Lower values blend them into soft washes. |
lighting | number | 0.4 | Strength of the glossy highlights on the paint. |
swirl | number | 0.25 | How tightly the paint spirals around the center, from 0 to 1. |
speed | number | 1 | How fast the paint flows. 0 freezes it. |
rotationSpeed | number | 0 | Turns the whole swirl continuously. Negative values turn it the other way. |
scale | number | 1 | Size of the paint shapes. Higher values zoom in. |
detail | number | 5 | How many times the paint folds over itself, from 1 to 8. Higher values add finer streaks. |
offset | [number, number] | OFFSET | Moves the center of the swirl, as a fraction of the container diagonal. |
pixelSize | number | 1.5 | Size of the pixels in CSS pixels. 0 renders it smooth. |
crt | number | 0 | Adds the scanlines and soft edge falloff of an old CRT screen, from 0 to 1. |
mouseInteraction | boolean | true | The cursor stirs the paint and steers the swirl. |
mouseStrength | number | 1 | How strongly the cursor drags the paint along. |
clickSwirl | boolean | true | Clicking spins the paint into a whirlpool that slowly unwinds. |
intro | boolean | true | The swirl spins into place on mount. |
lightMode | boolean | false | Lightens the gaps between the paints so it sits on light pages. |
opacity | number | 1 | Overall opacity, from 0 to 1. |
maxDevicePixelRatio | number | 2 | Highest pixel ratio the canvas renders at. |
className | string | None | |
style | CSSProperties | None |