EJERCICIO 4
background(0,0,0);
size(150,150);
stroke(255,255,255);
line(50,0,50,50);
stroke(255,255,255);
line(0,50,50,50);
stroke(100,100,100);
line(0,0,0,50);
stroke(50,50,50);
line(0,0,50,0);
EJERCICIO 5
size(150,100);
quad(61,60,94,60,99,83,81,90);
rect(10,10,60,60);
triangle(12,50,120,15,125,60);
EJERCICIO 6
size(150,100);
fill(255,0,0);
stroke(10,30,255);
quad(61,60,94,60,99,83,81,90);
rect(10,10,60,60);
triangle(12,50,120,15,125,60);
EJERCICIO 7
int valor1=0;
int valor2=100;
line(50,50,40,40);
line(40,40,50,50);
TRABAJO LINEAS EN MOVIMIENTO
void setup() {
size(600,600);
}
void draw() {
fill(0);
stroke(random(0,200),random(255),random(255));
rect(0,600,mouseX,mouseY);
rect(0,0,mouseX,mouseY);
line(600,0,mouseX,mouseY);
line(600,600,mouseX,mouseY);
}
0 comentarios:
Publicar un comentario