pixi-wheels
All recipes

Starters

Starters. Live wheel recipes built with pixi-wheels.

The shapes most wheels start from. Every demo here is complete: copy it, swap the sections, ship.

A wheel in ten lines#

Unequal arcs, a server that decides by odds rather than by arc, and setResult({ value }) landing on any section carrying that value.

Loading recipe…

Gamble, red and green#

Two sections, random landing so the pointer never rests on the divider, and the quick profile because a gamble is spun again and again.

Loading recipe…

From a template, and back to JSON#

WheelTemplates are plain configs with their server adapter attached. WheelBuilder.fromConfig() builds one, toConfig() gives it back; the console shows the JSON, which is the shape the studio exports.

Loading recipe…