ReelCurveConfig
pixi-reels / index / ReelCurveConfig
Interface: ReelCurveConfig
Defined in: core/ReelCurve.ts:26
Fake the curvature of a spinning reel cylinder.
The middle cell faces you; the outer ones have rotated away, so their far edge sits further from your eye. A camera turns those into TRAPEZOIDS, not smaller rectangles.
amount: 0 amount: 0.5
+-----------+ +-----------+
| A A A | | /-\ /-\ | <- far edge narrower: keystone
| B B B | | | B | B | | <- faces you, full size
| C C C | | \-/ \-/ |
+-----------+ +-----------+
Example#
builder.curve(0.35); // whole set
builder.curvePerReel([0.2, 0.35, 0.5, 0.35, 0.2]); // deeper in the middle