Skip to main content

Points

Draws a sequence of points according to the given point_mode.

Inherits: canvas.Shape

Properties

  • paint - A style to draw points with.
  • point_mode - Defines how a list of points is interpreted when drawing a set of points.
  • points - The list of offsets describing points.

Properties

paintclass-attributeinstance-attribute

paint: Paint = field(default_factory=lambda: Paint())

A style to draw points with.

point_modeclass-attributeinstance-attribute

point_mode: PointMode = PointMode.POINTS

Defines how a list of points is interpreted when drawing a set of points.

pointsclass-attributeinstance-attribute

points: list[OffsetValue] | None = None

The list of offsets describing points.