Skip to content
PixiKit

Planet Dawn

A sunrise breaking over the glowing edge of a dark planet, with an atmosphere, stars and auroras that rise where you click.

pixikit.com/docs/effects/planet-dawn

Customize

Preset
Colors2 of 10
Background color
Horizon0.72
Curvature1.00
Tilt0°
Sun position0.15
Sunrise1.00
Spread0.40
Atmosphere1.00
Thickness1.00
Rim1.00
Flare1.00
Airglow0.50
Clouds0.50
Stars0.50
Aurora1.00
Auto aurora
Speed0.50
Drift0.50
Parallax0.50
Bloom0.50
Grain0.25
Interactive
Intro
Paused
Dpr2.0

Props

31
NameTypeDefaultDescription
preset"dawn" | "eclipse" | "crescent" | "aurora" | "overhead" | "edge" | "twilight" | "halo""dawn"A complete view; the horizon, sun and glow props follow it until you pass them.
colorsstring[]["#FF9FFC", "#5227FF"]Two colors: the warm light at the sun, then the cool atmosphere.
backgroundColorstring"transparent"Color of space and of the planet; "transparent" shows the page.
horizonnumber0.72Height of the planet edge, as a fraction from the top.
curvaturenumber1How strongly the edge curves; higher values give a smaller planet.
tiltnumber0Turn of the whole view in degrees.
sunPositionnumber0.15Where the sun sits along the edge, -1 to 1.
sunrisenumber1How far the sun has risen; 0 leaves only the atmosphere.
spreadnumber0.4How far the sunlight spreads along the edge.
atmospherenumber1Brightness of the atmosphere glow.
thicknessnumber1Height of the atmosphere.
rimnumber1Brightness of the thin line on the edge.
flarenumber1Glare around the sun.
airglownumber0.5Faint second band above the atmosphere.
cloudsnumber0.5Lit clouds on the planet near the edge.
starsnumber0.5Stars above the planet.
auroranumber1Strength of the aurora curtains a click raises from the edge; 0 turns them off.
autoAurorabooleanfalseKeeps an aurora drifting along the edge on its own.
speednumber0.5Animation speed; 0 holds the frame.
driftnumber0.5How fast the clouds and stars drift.
parallaxnumber0.5How much the view rolls and lifts toward the pointer.
bloomnumber0.5Wide soft glow over the light.
grainnumber0.25Film grain strength.
interactivebooleantruePointer parallax, and a click or tap raises an aurora where you click.
introbooleantrueOn mount the sun rises over the edge.
pausedbooleanfalseFreezes the animation.
dprnumber2Upper limit for the device pixel ratio.
refRef<PlanetDawnHandle>NoneGives bloom(x, y) and replay().
classNamestringNoneClasses for the root element; give it a height.
styleCSSPropertiesNoneInline styles for the root element.
childrenReactNodeNoneContent layered above the effect.

Related