Ellipse

class img_gen.Ellipse(color: ColorKind, border: Border | None = None, arc: Arc | None = None, border_to_origin: bool = False)

An attribute to represent an Ellipse rendered in the layer.

arc

The Arc (if specified) to render instead of a full ellipse.

as_json_str()

Serialize the Ellipse object to a JSON string.

as_yaml_str()

Serialize the Ellipse object to a YAML string.

border

The [Border] (if specified) ro render around the ellipse.

border_to_origin

Extend the border of an arc to the center of the ellipse, creating a pie shape.

Does not affect full ellipses, and is ignored if arc is not specified.

color

The color used to fill the ellipse.

static from_json_str(json_str)

Deserialize an Ellipse object from a JSON string.

static from_yaml_str(yaml_str)

Deserialize an Ellipse object from a YAML string.