ShapeMode enum
The way to interpret the vertices in a shape that's
defined between beginShape()
and endShape()
.
The default mode (when no mode is specified) paints lines/curves with a fill.
Values
- points → const ShapeMode
-
Paints each vertex as a point, without any lines or curves between them.
- lines → const ShapeMode
-
Paints lines between each vertex without any fill.
- triangles → const ShapeMode
-
Paints each series of 3 vertices as independent triangles with lines and fills.
- triangleFan → const ShapeMode
- triangleStrip → const ShapeMode
-
Paints a connected strip of triangles.
The first 3 vertices define the first triangle. Every 2 vertices after that define additional triangles in the strip.
- quads → const ShapeMode
-
Paints each series of 4 vertices as independent quads with lines and fills.
- quadStrip → const ShapeMode
-
Paints a connected strip of quads.
The first 4 vertices define the first quad. Every 2 vertices after that define additional quads in the strip.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited