Schemas / Geometry / paint
rig.paint.fill_stroke
v0.31.0 · draft 5 fields 0 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
fillRgba |
rgba | optional | Optional. Fill colour (0-1); hosts may store as four floats |
strokeRgba |
rgba | optional | Optional. Stroke colour (0-1); hosts may store as four floats |
strokeWidth |
float | optional | Optional. Width in content units; absent = 1 |
hasFill |
bool | optional | Optional. Draw fill; absent = whether fillRgba is present |
hasStroke |
bool | optional | Optional. Draw stroke; absent = whether strokeRgba is present |
Inline fill / stroke on a drawable entity. Format when present.
Caps, joins, and dash compose rig.paint.stroke_style on the same entity - do not grow this schema with those fields.
Shared library paints use rig.paint.solid / rig.paint.gradient on their own entities, referenced from drawables via rig.paint.fill / rig.paint.stroke. Carrying the inline and referenced spelling for the same slot on one entity is a document error.
JSON Schema
Resolves at https://rig.works/schemas/rig.paint.fill_stroke.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.paint.fill_stroke.schema.json",
"title": "rig.paint.fill_stroke",
"type": "object",
"additionalProperties": false,
"properties": {
"fillRgba": {
"$ref": "./_defs.schema.json#/$defs/rgba"
},
"strokeRgba": {
"$ref": "./_defs.schema.json#/$defs/rgba"
},
"strokeWidth": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"hasFill": {
"$ref": "./_defs.schema.json#/$defs/bool"
},
"hasStroke": {
"$ref": "./_defs.schema.json#/$defs/bool"
}
}
}
Seen in
lfo-binding.json · minimal-scene.json · page-anchor.json · path3d-spline3d.json