inverting the maximite screen


Author Message
Gizmo

Admin Group

Joined: 05/06/2004
Location: Australia
Posts: 5186
Posted: 08:19am 08 Jun 2011      

Another way is

pixel(x,y)=not(pixel(x,y))

testing and writing to each pixel is a lot of work ( 207360 pixels all up ), and I doubt the Maximite MMBasic is optimised for fast video processing, plus its a interpreted language, so thats a lot of processing. A fill

line (0,0)-(480,432),1,"BF"

takes 141 milliseconds, cause its a single command that is run once, but thats not what you want.

Glenn
The best time to plant a tree was twenty years ago, the second best time is right now.
JAQ