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| Name | Type | Default | Description |
|---|---|---|---|
preset | "ember" | "lagoon" | "dusk" | "satin" | "dunes" | "tide" | "aurora" | "rings" | "ember" | A starting look; any prop you pass yourself overrides the preset value. |
colors | string[] | ["#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. |
angle | number | 55 | Linear direction in degrees, as in CSS: 0 points up, 90 points right. |
bands | number | 1 | Repeats of the palette, 1 to 8; more makes stripes or rings. |
softness | number | 1 | Color blending: 0 gives hard poster steps, 1 a smooth blend. |
flow | number | 0.8 | Bend of the gradient, 0 to 3; past 1 it marbles. |
scale | number | 1 | Wave size, 0.25 to 3. |
speed | number | 1 | Drift speed of the waves; 0 holds them. |
silk | number | 0.35 | Satin shading on the bends, 0 to 1. |
grainAmount | number | 0.08 | Grain strength, 0 to 0.5. |
grainSize | number | 1.2 | Grain size in px, 0.5 to 4. |
grainAnimated | boolean | true | Moves the grain each frame; off keeps it fixed. |
contrast | number | 1 | Color contrast, 0.2 to 2. |
saturation | number | 1 | Color saturation, 0 to 2. |
variation | number | 0 | Seed for the wave pattern. |
interactive | boolean | true | The pointer smears the colors; they settle back. |
stir | number | 1 | Reach of the pointer smear, 0 to 2. |
clickSwirl | boolean | true | A click twists the colors into a swirl that unwinds. |
intro | boolean | true | On mount the colors spread from the center. |
lightMode | boolean | false | Light palette: white first, the remaining colors reversed. |
dpr | number | None | Upper limit for the device pixel ratio, never above 2. Left unset, the screen ratio is used. |
className | string | None | |
style | CSSProperties | None |