Host typegenerated
Shape
A shape drawn in the game world, such as a circle, polygon or ring, with an inside color and an outline.
9 members · engine 0.1.0
Shape.count: numberHow many sides a polygon has (3 is a triangle, 6 a hexagon), or how many cells a grid shape is across.Shape.dash_duty: numberHow much of each dash is drawn, from 0 to 1; the rest is the gap before the next. 0.5 draws dashes and gaps of equal length.Shape.dashes: numberHow many dashes the outline is broken into. 0 draws a solid line.Shape.fill: ColorThe color inside the shape.Shape.layer: numberDrawing order: higher numbers are drawn in front of lower ones.Shape.stroke: ColorThe color of the shape's outline.Shape.stroke_width: numberHow thick the outline is, as a fraction of the shape's size.Shape.sweep_start: numberWhere the outline starts, as a fraction of the way round from the top.Shape.sweep_turns: numberHow much of the outline is drawn, from 0 to 1. Setting it to 0.5 draws half a ring, which makes cooldown and charge meters.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b