Schemas / Geometry / paint

rig.geometry.ellipse

v0.31.0 · draft 4 fields 4 required

Fields

FieldTypeMeaning
centerX float required Centre X, local space
centerY float required Centre Y, local space
radiusX float required Radius along X
radiusY float required Radius along Y

Axis-aligned ellipse. Format when present.

A circle is an ellipse with radiusX equal to radiusY. There is no separate circle schema - a reader that only draws circles should treat unequal radii as an ellipse rather than pick one radius.

Rotation belongs to rig.spatial.transform. Local (0,0) is the authored centre when centerX/centerY are set - see rig.spatial.anchor.

Appearance: rig.paint.fill_stroke.

JSON Schema

Resolves at https://rig.works/schemas/rig.geometry.ellipse.schema.jsonraw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.geometry.ellipse.schema.json",
  "title": "rig.geometry.ellipse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "centerX": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "centerY": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "radiusX": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "radiusY": {
      "$ref": "./_defs.schema.json#/$defs/float"
    }
  },
  "required": [
    "centerX",
    "centerY",
    "radiusX",
    "radiusY"
  ]
}

Seen in

lfo-binding.json · minimal-scene.json