drawRawPoints method

void drawRawPoints(
  1. PointMode pointMode,
  2. Float32List points,
  3. Paint paint

Draws a sequence of points according to the given PointMode.

The points argument is interpreted as a list of pairs of floating point numbers, where each pair represents an x and y offset from the origin.

The paint is used for each point (PointMode.points) or line (PointMode.lines or PointMode.polygon), ignoring Paint.style.

See also:


void drawRawPoints(PointMode pointMode, Float32List points, Paint paint) {
  if (points.length % 2 != 0) {
    throw ArgumentError('"points" must have an even number of values.');
  _drawPoints(paint._objects, paint._data, pointMode.index, points);