Schemas / Geometry / paint
rig.paint.pattern
v1.0.0 · stable maturity: stable 4 fields 2 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
width |
float | required | Tile width |
height |
float | required | Tile height |
units |
enumobject · user-space | optional | Optional. object or user-space. Absent = object |
contentUnits |
enumobject · user-space | optional | Optional. object or user-space. Absent = user-space |
Tiled paint. Format when present.
Tile pose is rig.spatial.transform on this entity. Children are the tile. A drawable references this entity through rig.paint.fill / stroke paint.
JSON Schema
Resolves at https://rig.works/schemas/rig.paint.pattern.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.paint.pattern.schema.json",
"title": "rig.paint.pattern",
"type": "object",
"additionalProperties": false,
"properties": {
"width": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"height": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"units": {
"type": "string",
"enum": [
"object",
"user-space"
]
},
"contentUnits": {
"type": "string",
"enum": [
"object",
"user-space"
]
}
},
"required": [
"width",
"height"
],
"x-rig-maturity": "stable"
}