Re: Remove a line from GraphicsContext

2016-02-04 Thread Bryan Buchanan
You're an absolute champion ! Thanks very much. On 4 February 2016 at 18:10, Gerrit Grunwald wrote: > First it will be better using > > gc.strokeLine(x1, y1, x2, y2); > > To clear the line itself you could clear a rect around the line like > > gc.clearRect(x1 - 1, y1 - 1, x2 + 1, y2 + 1); > > Ta

Re: Remove a line from GraphicsContext

2016-02-04 Thread Gerrit Grunwald
First it will be better using gc.strokeLine(x1, y1, x2, y2); To clear the line itself you could clear a rect around the line like gc.clearRect(x1 - 1, y1 - 1, x2 + 1, y2 + 1); Take a look at this Gist... https://gist.github.com/HanSolo/f25412352ff7ec5b9b53