Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 464 Bytes
from pyp5js import *
def setup():
createCanvas(500, 500)
def draw():
background(240, 240, 200)
translate(250, 300)
galho(60)
def galho(tamanho):
ang = radians(mouseX)
encurtar = .8
line(0, 0, 0, -tamanho)
if tamanho > 5:
translate(0, -tamanho)
rotate(ang)
galho(tamanho * encurtar)
rotate(2 * -ang)
galho(tamanho * encurtar)
rotate(ang)
translate(0, tamanho)
You can’t perform that action at this time.