Skip to content
PixiKit

Grain Gradient

A grainy gradient that bends into slow waves: drag the colours around like paint with the pointer and twist them with a click.

pixikit.com/docs/effects/grain-gradient

Customize

Preset
Colors5 of 10
Type
Angle55°
Bands1
Softness1.00
Flow0.80
Scale1.00
Speed1.00
Silk0.35
Grain amount0.08
Grain size1.2px
Grain animated
Contrast1.00
Saturation1.00
Variation0
Interactive
Stir1.00
Click swirl
Intro
Light mode

Props

24
NameTypeDefaultDescription
preset"ember" | "lagoon" | "dusk" | "satin" | "dunes" | "tide" | "aurora" | "rings""ember"A starting look; any prop you pass yourself overrides the preset value.
colorsstring[]["#120f17", "#2a0f0a", "#9a3412", "#f97316", "#fed7aa"]Two to eight colors from base to highlight. Start with the page background so the edges disappear.
type"linear" | "radial""linear"Linear crosses the area; radial puts the last color at the center.
anglenumber55Linear direction in degrees, as in CSS: 0 points up, 90 points right.
bandsnumber1Repeats of the palette, 1 to 8; more makes stripes or rings.
softnessnumber1Color blending: 0 gives hard poster steps, 1 a smooth blend.
flownumber0.8Bend of the gradient, 0 to 3; past 1 it marbles.
scalenumber1Wave size, 0.25 to 3.
speednumber1Drift speed of the waves; 0 holds them.
silknumber0.35Satin shading on the bends, 0 to 1.
grainAmountnumber0.08Grain strength, 0 to 0.5.
grainSizenumber1.2Grain size in px, 0.5 to 4.
grainAnimatedbooleantrueMoves the grain each frame; off keeps it fixed.
contrastnumber1Color contrast, 0.2 to 2.
saturationnumber1Color saturation, 0 to 2.
variationnumber0Seed for the wave pattern.
interactivebooleantrueThe pointer smears the colors; they settle back.
stirnumber1Reach of the pointer smear, 0 to 2.
clickSwirlbooleantrueA click twists the colors into a swirl that unwinds.
introbooleantrueOn mount the colors spread from the center.
lightModebooleanfalseLight palette: white first, the remaining colors reversed.
dprnumberNoneUpper limit for the device pixel ratio, never above 2. Left unset, the screen ratio is used.
classNamestringNone
styleCSSPropertiesNone

More background effects in Pro

View all

Related