You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I not sure there was an option to not send echo(0).

    This may seem stupid, but there's always the option of just writing the code in a way that doesn't produce warnings - At least for now :)

    Javascript actually has some really nasty newline behaviour (which I try not to implement in Espruino because it is horrible), and I'd need to check but it might be that the warnings are actually because the code you write may cause problems with some Javascript interpreters.

    I ought to document the fillpoly command better, but it works using a standard scan line algorithm which means that it won't handle a lot of irregular polygons. It may seem strange now, but I remember 20 years ago, all of the built in graphics libs behaved like that :)

    Given the differences in speed it might be worth making a slower polygon draw that handled irregular polys though.


Avatar for Gordon @Gordon started