Select Page

In a move to create a robust low-poly drawing demo, I wanted to allow users to be able to add points individually, erase points and spray random points to aid in image creation. This example uses a set “brush” size of 100px to create a spray radius. Points are indeed added to the points array at a coded 20 points. But the example falls short of adding the point to the canvas for triangulation.

Clicking on the “points” button or the “spray” button will bring up the intended functionality. Clicking on “spray” will show a circle that a click would add a certain number of random points into.