pixi-wheels

DebugOverlayLayer

pixi-wheels


pixi-wheels / index / DebugOverlayLayer

Type Alias: DebugOverlayLayer

type DebugOverlayLayer = "sections" | "pointers" | "pegs" | "target" | "hud";

Defined in: debug/debugOverlay.ts:20

Overlay layers.

  • sections divider lines on the disc, plus an upright pill just inside the rim with each section’s id and start angle.
  • pointers a marker at every pointer angle and a pill with the local angle under it.
  • pegs the pegs the tongues touch, the peg being ridden, and each tongue’s contact zone.
  • target the landing angle of the current result: a line on the disc and a pill naming it.
  • hud a panel per ring in screen space: state, rotation, speed, current leg, section under the pointer, flap.

Text is drawn at a constant screen size whatever scale the wheel is shown at, on dark pills that read on any background.