Schemas / Pixel / raster
rig.pixel.region
v0.31.0 · draft 4 fields 0 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
fit |
enumloose · polyline · curves | optional | loose, polyline, curves |
fill |
enumnone · hatch · cross-hatch · stipple · flow · outline · paint | optional | none, hatch, cross-hatch, stipple, flow, outline, paint |
paintBrushWidth |
float | optional | Optional. Canvas-px brush for paint fill; absent = host default |
color |
rgb | optional | Optional. Region tint 0-1; absent = black |
Found or drawn feeder region.
Compose rig.meta.named for the label. Outline may later compose rig.geometry.path.
Fill strokes and outline vertices are derived / host until the path compose is honest.
JSON Schema
Resolves at https://rig.works/schemas/rig.pixel.region.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.pixel.region.schema.json",
"title": "rig.pixel.region",
"type": "object",
"additionalProperties": false,
"properties": {
"fit": {
"type": "string",
"enum": [
"loose",
"polyline",
"curves"
]
},
"fill": {
"type": "string",
"enum": [
"none",
"hatch",
"cross-hatch",
"stipple",
"flow",
"outline",
"paint"
]
},
"paintBrushWidth": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"color": {
"$ref": "./_defs.schema.json#/$defs/rgb"
}
}
}