Skip to content
PixiKit

Sun Shafts

Shafts of light fanning out from an edge or corner, with haze, a glow at the source, a cursor that turns the beam and casts a shadow, and a pulse of light on click.

pixikit.com/docs/effects/sun-shafts

Customize

Rays origin
Rays color
Rays speed1.00
Light spread0.50
Ray length3.0
Ray density1.0
Tilt0
Ray sharpness0.35
Glow0.60
Haze0.25
Atmosphere1.0
Intensity1.00
Pulsating
Fade distance1.00
Saturation1.00
Follow mouse
Mouse influence0.10
Cursor shadow
Click pulse
Noise amount0.00
Distortion0.00
Intro
Light mode
Opacity1.00

Props

27
NameTypeDefaultDescription
raysOrigin"top-center" | "top-left" | "top-right" | "left" | "right" | "bottom-center" | "bottom-left" | "bottom-right""top-center"Where the light comes from: 'top-center', 'top-left', 'top-right', 'left', 'right', 'bottom-center', 'bottom-left' or 'bottom-right'.
raysColorstring"#ffffff"Color of the light.
raysSpeednumber1Animation speed. 0 freezes the rays.
lightSpreadnumber0.5How wide the beam opens. Lower values give a tight spotlight.
rayLengthnumber3How far the rays reach, in container widths.
rayDensitynumber1How many separate shafts the beam splits into.
tiltnumber0Turns the beam by this many degrees.
raySharpnessnumber0.35How crisp the edges of the shafts are, from 0 to 1.
glownumber0.6Brightness of the glow around the light source.
hazenumber0.25Drifting haze that breaks the shafts up, like dust in the air, from 0 to 1.
atmospherenumber1How much the light cools toward blue as it travels away from the source, from 0 to 1.
intensitynumber1Overall brightness of the light.
pulsatingbooleanfalseThe rays slowly breathe brighter and dimmer.
fadeDistancenumber1How far the rays travel before they dim, in container widths.
saturationnumber1Color saturation of the light.
followMousebooleantrueThe beam turns toward the cursor.
mouseInfluencenumber0.1How far the beam turns toward the cursor, from 0 to 1.
cursorShadowbooleantrueThe cursor blocks the light and casts a soft shadow down the rays.
clickPulsebooleantrueClicking sends a wave of light down the rays.
noiseAmountnumber0Film grain over the rays, from 0 to 1.
distortionnumber0Makes the rays waver as if seen through heat.
introbooleantrueThe rays grow out from the source on mount.
lightModebooleanfalsePrints the light as soft colored ink 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