Skip to content

PaintingStyle

Inherits: Enum

Strategy used by Paint.style when drawing geometry.

Determines whether a shape is rendered as a filled interior or as an outlined contour.

Properties

  • FILL

    Paint the interior of the shape.

  • STROKE

    Paint only the shape outline.

Properties#

FILL = 'fill' class-attribute instance-attribute #

Paint the interior of the shape.

For example, circles and polygons are rendered as solid filled regions.

STROKE = 'stroke' class-attribute instance-attribute #

Paint only the shape outline.

Stroke thickness and joins/caps are controlled by properties such as Paint.stroke_width, Paint.stroke_join, and Paint.stroke_cap.