Update Esfera.pyde
It had lots of trailling spaces, sorry!
@@ -11,36 +11,33 @@ RADIO = 200 # radius
rx = 0
ry = 0
+
def setup():
size(1024, 768, P3D)
global RADIO, LISTA
RADIO = height/3.5
-
for _ in range(CUANTOS):
LISTA.append(Pelo())
-
noiseDetail(3)
+
def draw():
global rx, ry
-
background(0)
-
rxp = (mouseX-(width/2)) * 0.005
ryp = (mouseY-(height/2)) * 0.005
rx = rx*0.9 + rxp*0.1
ry = ry*0.9 + ryp*0.1
-
translate(width/2, height/2)
rotateY(rx)
rotateX(ry)
fill(0)
noStroke()
sphere(RADIO)
-
for pelo in LISTA:
pelo.dibujar()
+
class Pelo():
"""A hair"""
def __init__(self):
