Schemas / Geometry / paint
rig.geometry.ring
v0.31.0 · draft 4 fields 4 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
centerX |
float | required | Centre X, local space |
centerY |
float | required | Centre Y, local space |
outerRadius |
float | required | Outer edge |
innerRadius |
float | required | Inner edge; must not exceed outerRadius |
Annulus - a disc with a concentric hole. Format when present.
Distinct from a stroked rig.geometry.ellipse: a ring's hole is part of its geometry, so fills and hit tests exclude it. A stroked circle has no hole, only an unpainted middle. Local (0,0) is the authored centre - see rig.spatial.anchor.
Appearance: rig.paint.fill_stroke.
JSON Schema
Resolves at https://rig.works/schemas/rig.geometry.ring.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.geometry.ring.schema.json",
"title": "rig.geometry.ring",
"type": "object",
"additionalProperties": false,
"properties": {
"centerX": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"centerY": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"outerRadius": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"innerRadius": {
"$ref": "./_defs.schema.json#/$defs/float"
}
},
"required": [
"centerX",
"centerY",
"outerRadius",
"innerRadius"
]
}