PointMode
Inherits: Enum
Defines how a list of points is interpreted when drawing a set of points.
Properties
-
LINES–Draw each sequence of two points as a line segment. If the number of points is odd, then the last point is ignored. The lines are stroked as described by the
Paint(ignoringPaint.style). -
POINTS–Draw each point separately. If the
Paint.stroke_capisStrokeCap.ROUND, then each point is drawn as a circle with the diameter of thePaint.stroke_width, filled as described by thePaint(ignoringPaint.style). Otherwise, each point is drawn as an axis-aligned square with sides of lengthPaint.stroke_width, filled as described by thePaint(ignoringPaint.style). -
POLYGON–Draw the entire sequence of point as one line. The lines are stroked as described by the
Paint(ignoringPaint.style).
Properties#
LINES = 'lines'
class-attribute
instance-attribute
#
Draw each sequence of two points as a line segment. If the number of points is odd, then the last point is ignored. The lines are stroked as described by the Paint (ignoring Paint.style).
POINTS = 'points'
class-attribute
instance-attribute
#
Draw each point separately. If the Paint.stroke_cap is StrokeCap.ROUND, then each point is drawn as a circle with the diameter of the Paint.stroke_width, filled as described by the Paint (ignoring Paint.style). Otherwise, each point is drawn as an axis-aligned square with sides of length Paint.stroke_width, filled as described by the Paint (ignoring Paint.style).
POLYGON = 'polygon'
class-attribute
instance-attribute
#
Draw the entire sequence of point as one line. The lines are stroked as described by the Paint (ignoring Paint.style).