Skip to content
PixiKit

Edge Shafts

Two layers of light fanning in from a corner or side, a warm one and a cool one, that shimmer, lean toward the cursor and brighten under it.

pixikit.com/docs/effects/edge-shafts

Customize

Ray color1
Ray color2
Blend0.60
Origin
Speed2.5
Intensity2.00
Spread2.00
Density5.0
Sharpness0.50
Tilt0
Falloff1.60
Glow1.00
Saturation1.00
Dust0.00
Follow mouse
Mouse influence0.50
Intro
Light mode
Opacity1.00

Props

22
NameTypeDefaultDescription
rayColor1string"#FFC46B"Color of the first layer of rays, on the upper side of the fan.
rayColor2string"#96c8ff"Color of the second layer of rays, on the lower side of the fan.
blendnumber0.6Balance between the two layers, from 0 (only the first color) to 1 (only the second).
origin"top-right" | "top-left" | "bottom-right" | "bottom-left" | "right" | "left""top-right"Corner or side the light shines in from.
speednumber2.5How fast the rays shimmer and sway. 0 freezes them.
intensitynumber2Brightness of the light.
spreadnumber2How wide the rays fan out.
densitynumber5How many separate rays the light breaks into. Higher values give finer rays.
sharpnessnumber0.5How crisp the edges of the rays are, from soft haze at 0 to defined beams at 1.
tiltnumber0Rotates the rays, in degrees.
falloffnumber1.6How quickly the light fades with distance. Lower values let the rays reach further.
glownumber1Brightness of the glow where the light enters.
saturationnumber1Color saturation of the light. 0 is grayscale.
dustnumber0Amount of dust drifting in the light, from 0 to 1. Specks only show inside the rays.
followMousebooleantrueThe rays lean toward the cursor and the ray under it brightens.
mouseInfluencenumber0.5How strongly the rays follow the cursor, from 0 to 1.
introbooleantrueThe rays grow out from their source on mount.
lightModebooleanfalseRenders the rays as soft tinted light for light backgrounds.
opacitynumber1Overall opacity, from 0 to 1.
maxDevicePixelRationumber2Highest pixel ratio the canvas renders at.
classNamestringNone
styleCSSPropertiesNone

More background effects in Pro

View all

Related