11 Likes
Nice mandelbrots! Can you share the code please!!
1 Like
Sick! Very tribal looking
1 Like
This is really good. Just photoshopt the logo out and makes a sweet background. Where did you find it? Any bigger resolutions?
1 Like
adjust cx cy for changing the shape.. also btw at 4k i run out of ram some times. so be careful with resolutions. Shamefully lifted it off this article.
# Python code for Julia Fractal
from PIL import Image
# driver function
if __name__ == "__main__":
# setting the width, height and zoom
# of the image to be created
w, h, zoom = 1600, 900, 1
# creating the new image in RGB mode
bitmap = Image.new("RGB", (w, h), "white")
# Allocating the storage for the image and
# loading the pixel data.
pix = bitmap.load()
# setting up the variables according to
# the equation to create the fractal
cX, cY = -0.1, 0.1420
moveX, moveY = 0.0, 0.0
maxIter = 255
for x in range(w):
for y in range(h):
zx = 1.5 * (x - w / 2) / (0.5 * zoom * w) + moveX
zy = 1.0 * (y - h / 2) / (0.5 * zoom * h) + moveY
i = maxIter
while zx * zx + zy * zy < 4 and i > 1:
tmp = zx * zx - zy * zy + cX
zy, zx = 2.0 * zx * zy + cY, tmp
i -= 1
# convert byte to RGB (3 bytes), kinda
# magic to get nice colors
pix[x, y] = (i << 21) + (i << 10) + i * 8
# to display the created fractal
bitmap.show()
3 Likes
Thank-you, in return, here is one I made with javascript: siggines.github.io/fractals at master ยท siggines/siggines.github.io ยท GitHub
2 Likes
noice. im literally in my 1st year of CS so this will be of great study use for me.
3 Likes
Priceless!
2 Likes