Login
Back to forumSee the full topicGo to last reply

Posted By

Mad
on 2016-11-10
18:46:41
 Re: Mandelbrot and Commodore computers

Cool! Must look into the sources, this edgetracing approach for fractals is somehow awesome! (Some Mandelbrot zoomers in PC Demos where most probably coded with it).

The main point seems to be this:
; This method scans the 8 neighbouring pixels around the one at (x,y).
; If any are found with a different colour to this one, they are added to the stack to be processed later.

So you get only the outlines. Most probably you just need to go from top to bottom through every column and fill the holes with the right colors.
Perhaps this is just do able in basic, too. Dunno..

Ah and the floodfill:

; Flood fill remaining areas.
; Because we know that filled regions are bounded completely by their colour,
; we can just scan downwards, duplicating the byte above into the byte below, masking out
; any bits which are already written in the byte below.

Didn't understood every detail. But it seems that the trick is just testing the 8 neighbors for a different color to determine the next pixels to process.

Or did the basic programs already do this stuff?



Back to top


Copyright © Plus/4 World Team, 2001-2024