@dioramajs/backgrounds/stars
Exports of @dioramajs/backgrounds/stars.
import { default, POOL, SHOTS } from '@dioramajs/backgrounds/stars'Constants
default | A starfield on an empty element: stars in depth layers twinkle, drift slowly and lean with the pointer and the scroll, nearer ones more; a fast scroll stretches them into streaks, and now and then a shooting star crosses the sky. The warp motion flies through the field instead. One instanced draw over a flat sky color. |
POOL | Stars the instance buffer holds: `count` draws the first of them. |
SHOTS | Shooting star slots, before the stars in the buffer. |