Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
from __future__ import division
|
||||
|
||||
cX = -0.7
|
||||
cY = 0.27015
|
||||
maxIter = 300
|
||||
|
||||
def setup():
|
||||
size(640, 480)
|
||||
|
||||
def draw():
|
||||
for x in range(width):
|
||||
for y in range(height):
|
||||
zx = 1.5 * (x - width / 2) / (0.5 * width)
|
||||
zy = (y - height / 2) / (0.5 * height)
|
||||
i = maxIter
|
||||
while zx * zx + zy * zy < 4 and i > 0:
|
||||
tmp = zx * zx - zy * zy + cX
|
||||
zy = 2.0 * zx * zy + cY
|
||||
zx = tmp
|
||||
i -= 1
|
||||
colorMode(HSB)
|
||||
c = color(i / maxIter * 255, 255, 255 if i > 1 else 0)
|
||||
set(x, y, c)
|
||||
Loading…
Add table
Add a link
Reference in a new issue