Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
size(300, 300)
|
||||
background(0)
|
||||
radius = min(width, height) / 2.0
|
||||
cx, cy = width / 2, width / 2
|
||||
for x in range(width):
|
||||
for y in range(height):
|
||||
rx = x - cx
|
||||
ry = y - cy
|
||||
s = sqrt(rx ** 2 + ry ** 2) / radius
|
||||
if s <= 1.0:
|
||||
h = ((atan2(ry, rx) / PI) + 1.0) / 2.0
|
||||
colorMode(HSB)
|
||||
c = color(int(h * 255), int(s * 255), 255)
|
||||
set(x, y, c) # note set() used as Processing set() not as Python set()
|
||||
Loading…
Add table
Add a link
Reference in a new issue