Victor Muñoz: Objeto cayendo
De Casiopea
Título | Objeto cayendo y chocando |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 6 |
Asignatura | Imagen Escrita 2012, |
Del Curso | Imagen Escrita 2012, |
Carreras | Arquitectura |
Alumno(s) | Victor Muñoz |
Profesor | Herbert Spencer |
color c = color(#0F14F5); float x = 40; float y = 400; float speed = 1; void setup() { size(500,500); } void draw() { background(#F5EA0F); move(); display(); } void move() { x = x + speed; if (x > width) { x = 30; } } void display() { fill(c); stroke (#0FF555); ellipse(x, 350,mouseY , 16); ellipse(150,x,18,mouseY); }