That'd be really cool. I guess the fastest thing might be to just store the polylines as Uint8Arrays and then put those into g.fillPoly? Assuming you were only drawing regular polygons? If they were irregular in one dimension only you might be able to get away with rotating the graphics and still using fillPoly though?
I think one thing we're missing is a fast way to interpolate between two arrays though, which would allow for smoother animations. I guess that one might actually be a good use for the E.compiledC...
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.
That'd be really cool. I guess the fastest thing might be to just store the polylines as Uint8Arrays and then put those into
g.fillPoly
? Assuming you were only drawing regular polygons? If they were irregular in one dimension only you might be able to get away with rotating the graphics and still usingfillPoly
though?I think one thing we're missing is a fast way to interpolate between two arrays though, which would allow for smoother animations. I guess that one might actually be a good use for the
E.compiledC
...