Skip to content
PixiKit

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
NameTypeDefaultDescription
color1string"#DE443B"Main paint color.
color2string"#006BB4"Second paint color, swirled into the first.
color3string"#162325"Color of the gaps between the two paints.
contrastnumber3.5How sharply the paints separate. Lower values blend them into soft washes.
lightingnumber0.4Strength of the glossy highlights on the paint.
swirlnumber0.25How tightly the paint spirals around the center, from 0 to 1.
speednumber1How fast the paint flows. 0 freezes it.
rotationSpeednumber0Turns the whole swirl continuously. Negative values turn it the other way.
scalenumber1Size of the paint shapes. Higher values zoom in.
detailnumber5How many times the paint folds over itself, from 1 to 8. Higher values add finer streaks.
offset[number, number]OFFSETMoves the center of the swirl, as a fraction of the container diagonal.
pixelSizenumber1.5Size of the pixels in CSS pixels. 0 renders it smooth.
crtnumber0Adds the scanlines and soft edge falloff of an old CRT screen, from 0 to 1.
mouseInteractionbooleantrueThe cursor stirs the paint and steers the swirl.
mouseStrengthnumber1How strongly the cursor drags the paint along.
clickSwirlbooleantrueClicking spins the paint into a whirlpool that slowly unwinds.
introbooleantrueThe swirl spins into place on mount.
lightModebooleanfalseLightens the gaps between the paints so it sits on light pages.
opacitynumber1Overall opacity, from 0 to 1.
maxDevicePixelRationumber2Highest pixel ratio the canvas renders at.
classNamestringNone
styleCSSPropertiesNone

More background effects in Pro

View all

Related