There were a couple of other things I would do different… I would always put filled to true before passing a colour… I could not understand colouring a stroke of no width what would be the point…? My first guess as to why you get errors is you function does not know your variables they are out of scope…?
↧