Draw a collection of lines to the Py5Graphics drawing surface.
Draw a collection of lines to the Py5Graphics drawing surface. The purpose of this method is to provide an alternative to repeatedly calling Py5Graphics.line() in a loop. For a large number of lines, the performance of
lines() will be much faster.
coordinates parameter should be a numpy array with one row for each line. The first few columns are for the first point of each line and the next few columns are for the second point of each line. There will be four or six columns for 2D or 3D points, respectively.
Underlying Java method: PGraphics.lines
lines(coordinates: NDArray[(Any, Any), Float], /) -> None
coordinates: NDArray[(Any, Any), Float] - array of line coordinates
Updated on September 11, 2021 16:51:34pm UTC