Right now, fillPoly and drawPoly just iterate over the array they're given, but I guess they could be modified to take data of the form [[x,y],[x,y]...] or [{x,y},{x,y},...]? It might make this sort of thing a bit more readable?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Right now,
fillPoly
anddrawPoly
just iterate over the array they're given, but I guess they could be modified to take data of the form[[x,y],[x,y]...]
or[{x,y},{x,y},...]
? It might make this sort of thing a bit more readable?