Schemas / Geometry / paint

rig.paint.fill

v0.31.0 · draft 1 field 1 required

Fields

FieldTypeMeaning
paint entity required Entity carrying rig.paint.solid or rig.paint.gradient

Fill by reference - this drawable is painted by a shared paint entity. Format when present.

This is the referenced spelling of what rig.paint.fill_stroke does inline - the same duality as SVG's fill="#f00" versus fill="url(#g)". Use the reference when several drawables share one paint, so editing the paint restyles all of them; use the inline form when the colour belongs to this entity alone.

Carrying both this and an inline fill on one entity is a document error - there is no rule for which wins.

Stroke is separate: rig.paint.stroke.

JSON Schema

Resolves at https://rig.works/schemas/rig.paint.fill.schema.jsonraw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.paint.fill.schema.json",
  "title": "rig.paint.fill",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "paint": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    }
  },
  "required": [
    "paint"
  ]
}