Skip to main content
Category: Shapes · Decorative: no data binding

Mental model

A Polygon is an N-sided shape. Set the number of sides for a pentagon, hexagon, octagon, and so on.

Settings

Common shape settings — fill, stroke (color + width), opacity, optional rotation speed — plus number of sides.

Script API example

The same interactions from a dashboard script:
// Spin as an activity indicator
let a = 0;
const spin = setInterval(() => widget.setRotation('hex', (a += 5) % 360), 100);
// later: clearInterval(spin);

Star

A multi-point star instead of a regular polygon.