Mandelbrot set

Topic: Mathematics

Tags Fractal

This program draws the mandelbrot set using the pixel by pixel iteration method

Mandelbrot set

Topic: Mathematics

Tags Fractal

This program draws the mandelbrot set using the pixel by pixel iteration method

Mandelbrot set

this program draws the mandelbrot set using the pixel by pixel iteration method

Program:

-a suitable graphics window is set and the steps dx and dy are calculated

-two for-loops go through all the pixels of the screen

-the starting point z and c of the recursive sequence z:=z^(2)+care set.

-the first 25 terms are calculated until abs(z)>2, in this case the startingpoint is drawn using

SetColor 255-50*√(k),0,50*√(k)

the color to varies between red and blue. Using k:=25 ends the for loop.

-the program then switches to the next pixel

use:

- this program is too slow for a handheld, it works fine on the sofware version