Schemas / Pixel / raster
rig.pixel.canvas
v0.31.0 · draft 3 fields 2 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
width |
int | required | Pixels |
height |
int | required | Pixels |
clearRgba |
rgba | optional | Optional. Clear colour (0-1); absent = transparent black (0, 0, 0, 0) |
Artboard size and clear colour. Format when present.
Compose rig.meta.named for the document title.
Dirty flags, GPU preference, and surfaces stay in the host - do not serialize.
JSON Schema
Resolves at https://rig.works/schemas/rig.pixel.canvas.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.pixel.canvas.schema.json",
"title": "rig.pixel.canvas",
"type": "object",
"additionalProperties": false,
"properties": {
"width": {
"$ref": "./_defs.schema.json#/$defs/int"
},
"height": {
"$ref": "./_defs.schema.json#/$defs/int"
},
"clearRgba": {
"$ref": "./_defs.schema.json#/$defs/rgba"
}
},
"required": [
"width",
"height"
]
}