Hi,
I used g.fillpoly() to fill color in the desired red ring and achieved what i wanted. Please see my updated image.
However, am not sure if there was a better way to do this.
Finding out the coordinates for each tiny area and then coloring it with green wasn't so easy.
I am sure there must be some easy way to find the coordinates or not?
Thanks a lot for all your help
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.
Hi,
I used g.fillpoly() to fill color in the desired red ring and achieved what i wanted. Please see my updated image.
However, am not sure if there was a better way to do this.
Finding out the coordinates for each tiny area and then coloring it with green wasn't so easy.
I am sure there must be some easy way to find the coordinates or not?
Thanks a lot for all your help