mirror of
https://github.com/Xevion/processing-projects.git
synced 2025-12-07 03:16:05 -06:00
visuals section - all gifs and updated READMEs - mega commit
This commit is contained in:
@@ -1,24 +1,27 @@
|
||||
import random
|
||||
|
||||
def setup():
|
||||
size(1440, 1440)
|
||||
size(750, 750)
|
||||
frameRate(99999999)
|
||||
colorMode(HSB, 100)
|
||||
noLoop()
|
||||
top = 0
|
||||
def draw():
|
||||
global top
|
||||
top += 1
|
||||
top += 0.3 + (top / 10000)
|
||||
translate(width/2, height/2)
|
||||
# background(100)
|
||||
strokeWeight(0.1)
|
||||
# for rot in range(1, top):
|
||||
rot = top
|
||||
rot = rot/10.0
|
||||
fill((rot / 9.0) % 100, 100, 100)
|
||||
fill((rot / 10) % 100, 100, 100)
|
||||
pushMatrix()
|
||||
rotate(degrees(rot))
|
||||
translate(rot / 10.0, 0)
|
||||
translate(rot, rot)
|
||||
rect(0, 0, 50, 50)
|
||||
popMatrix()
|
||||
# noLoop()
|
||||
|
||||
def mouseClicked():
|
||||
loop()
|
||||
|
||||
Reference in New Issue
Block a user