Skip to content

egeysn/juliasets-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

juliasets-c

Julia-Sets C language Code

Requirements: DevC++;

.pgm Image Viewer

IDE = Dev-C++

f(z)=z^(2)+c

Pseudocode(from Wikipedia)

for each pixel (x, y) on the screen, do:
{ zx = scaled x coordinate of pixel # (scale to be between -R and R) # zx represents the real part of z. zy = scaled y coordinate of pixel # (scale to be between -R and R) # zy represents the imaginary part of z.

iteration = 0
max_iteration = 1000

while (zx * zx + zy * zy < R**2  AND  iteration < max_iteration) 
{
    xtemp = zx * zx - zy * zy
    zy = 2 * zx * zy  + cy 
    zx = xtemp + cx

    iteration = iteration + 1 
}

if (iteration == max_iteration)
    return black;
else
    return iteration;

}

About

Julia-Sets C language Code

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages