drawPolygon method

  1. @override
void drawPolygon(
  1. List<Vector2> vertices,
  2. Color3i color
)
override

Draw a closed polygon provided in CCW order. WARNING: This mutates vertices.

Implementation

@override
void drawPolygon(List<Vector2> vertices, Color3i color) {
  _pathPolygon(vertices, color);
  ctx.stroke();
}