Shape attributes

class img_gen.Border(color: ColorKind, width: int = 1)

A property to describe an attributes [Border].

See [Polygon], [Rectangle], [Ellipse], and [Typography].

as_json_str()

Serialize the Border object to a JSON string.

as_yaml_str()

Serialize the Border object to a YAML string.

color

The color used to draw the border.

static from_json_str(json_str)

Deserialize a Border object from a JSON string.

static from_yaml_str(yaml_str)

Deserialize a Border object from a YAML string.

width

The width (in pixels) used to draw the border.