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.

Inheritance

Constructors

ShapeMode()
const

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

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<ShapeMode>
A constant List of the values in this enum, in order of their declaration.