Re: Proceeding apace...
- Posted by simulat <simulat at INTERGATE.BC.CA> Mar 23, 2000
- 543 views
> ... but still getting stuck on issues with the fill routine. Hi Jeff This is pretty vague, but I remember some sort of odd/even rule that was used for fills: Start at the screen edge at the top If you are inside the your fill area at the start then start with the fill color turned on, otherwise off. When you hit a boundary between the fill zone and the non fill zone, toggle the fill color. Basically, an even number of boundary jumps means that the pixel colour is the same as the screen edge, and an odd number of jumps means that the pixel colour is the opposite of the screen edge. So basically, you just do a raster scan of all the pixels, toggling the fill colour whenever the boundary colour is encountered. Bye Martin