Update Esfera.pyde
I don't understand what kind of stupid thing I did. I'm very sorry. :((
I just tried again Ctrl-T and it just did what it was supposed to do.
MODIFY
mode/examples/Demos/Performance/Esfera.pyde
mode/examples/Demos/Performance/Esfera.pyde
@@ -13,33 +13,41 @@ ry = 0
def setup():
- size(1024, 768, P3D)
global RADIO, LISTA
+ size(1024, 768, P3D)
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):
self.z = random(-RADIO, RADIO)
self.phi = random(TWO_PI)

Update Esfera.pyde

I don't understand what kind of stupid thing I did. I'm very sorry. :((
I just tried again Ctrl-T and it just did what it was supposed to do.