Basic Shapes

There are a few basic shapes supported. These shapes all use a common attribute called border to control rendering the stroke that outlines the shapes.

class Border
width : Annotated[float, FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0)])]

The border’s width in pixels. Defaults to 0.

color : Color | Linear_Gradient | Radial_Gradient | Conical_Gradient | None

The border’s color.

Seealso

Please review Choosing a color section for more detail.