pixi-wheels

WheelTemplates

pixi-wheels


pixi-wheels / index / WheelTemplates

Variable: WheelTemplates

const WheelTemplates: {
  debug: WheelConfig;
  dynamicJackpot: WheelConfig;
  gamble: WheelConfig;
  gambleDynamic: WheelConfig;
  jackpots: WheelConfig;
  multipliers: WheelConfig;
  twoRing: WheelConfig;
};

Defined in: core/templates.ts:14

Ready-made wheel configs for the common shapes. Each is a plain WheelConfig: load one into WheelBuilder.fromConfig(), or copy the JSON into the studio and tune it there.

Type Declaration#

NameTypeDescriptionDefined in
debug()() => WheelConfigTwelve equal sections in the debug skin: for wiring and tests.core/templates.ts:175
dynamicJackpot()() => WheelConfigThe studio brief: jackpot sections whose arcs move step by step, as a purely cosmetic state, with the titles following the middle of each.core/templates.ts:112
gamble()() => WheelConfigTwo halves, red and green, as a gamble wheel.core/templates.ts:16
gambleDynamic()() => WheelConfigThe same two colours whose split moves step by step: the green share grows or shrinks as the round goes on. A dynamic-section gamble.core/templates.ts:42
jackpots()() => WheelConfigFour jackpot tiers; the small ones wide, the grand a sliver.core/templates.ts:81
multipliers()() => WheelConfigMultipliers with unequal arcs: the big ones are thin.core/templates.ts:59
twoRing()() => WheelConfigAn outer ring of tiers and an inner ring read by an inward-facing pointer.core/templates.ts:129