RossW Guru Joined: 25/02/2006 Location: AustraliaPosts: 495
Posted: 07:49am 08 Jun 2011
I don't (yet) have one of these beasties, and it's a LONG time since I was forced to endure BASIC, but surely the if-then-else test is hideously inefficient. Doesn't the basic include an XOR?
replace lines 40, 50 and 60 with
pixel(x,y)=pixel(x,y) XOR 1