Schemas / Geometry / paint
rig.paint.stroke
v0.31.0 · draft 2 fields 1 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
paint |
entity | required | Entity carrying rig.paint.solid or rig.paint.gradient |
width |
float | optional | Optional. Stroke width in content units; absent = 1 |
Stroke by reference - this drawable's outline is painted by a shared paint entity. Format when present.
The width stays here rather than on the paint, because two shapes sharing one swatch usually do not share a thickness. Caps, joins, and dash compose rig.paint.stroke_style on the drawable.
Carrying both this and an inline stroke on one entity is a document error. The fill counterpart is rig.paint.fill; the inline form is rig.paint.fill_stroke.
JSON Schema
Resolves at https://rig.works/schemas/rig.paint.stroke.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.paint.stroke.schema.json",
"title": "rig.paint.stroke",
"type": "object",
"additionalProperties": false,
"properties": {
"paint": {
"$ref": "./_defs.schema.json#/$defs/entity"
},
"width": {
"$ref": "./_defs.schema.json#/$defs/float"
}
},
"required": [
"paint"
]
}