Arc¶
An arc draws part of a circle on the card. Use it as a background shape, curved panel, highlight, or decorative element.
An arc is defined by its center, radius, and the number of degrees it covers.
Basic configuration¶
Add arcs under layout.arcs:
xpos and ypos position the center of the arc.
radius controls its size and arc_degrees controls how much of the circle is drawn.
Configuration options¶
| Field | Required | Default | Description |
|---|---|---|---|
xpos | No | 50 | Horizontal position of the arc center |
ypos | No | 50 | Vertical position of the arc center |
radius | No | 45 | Radius of the arc |
arc_degrees | No | 260 | Number of degrees covered by the arc |
rotate | No | 0 | Rotates the arc around its center |
flip | No | none | Flips the arc |
entity_index | No | Not set | Entity used by state-dependent features |
styles | No | Default arc style | SVG and CSS styling |
color_stops | No | Not set | Colors the arc from its entity value |
Arc size and direction¶
Change arc_degrees to create shorter or longer arcs:
Rotate the arc¶
Use rotate to move the opening around the circle without changing the number of degrees:
This makes it easy to use the same arc shape at different orientations.
Fill and outline¶
Arc shapes support SVG fill and outline styling:
Common properties include:
| Property | Use |
|---|---|
fill | Inside color |
stroke | Outline color |
stroke-width | Outline width |
opacity | Opacity of the complete arc |
fill-opacity | Opacity of the fill |
stroke-opacity | Opacity of the outline |
See Styling for the complete styling guide.
Color from an entity¶
Connect an arc to an entity when its color should respond to the entity state.
Arc color stops are applied to the fill by default:
See Color stops for ranges, gradients, palettes, and interpolation.