Primera prueba de una elipse
segunda prueba agregando cuadrado
Tarea a realizar:
Demo1.
size(200, 200);
background(0);
rectMode(CORNER);
rect(75, 10, 50, 150);
fill(185);
rectMode(CENTER);
rect(20, 100, 40, 55);
rectMode(CORNERS);
fill(64);
rect(0, 175, 200, 190);
Demo2.
size(200, 200);
noStroke();
background(0);
smooth();
ellipseMode(CORNER);
ellipse(75, 10, 50, 150);
ellipseMode(CENTER);
fill(185);
noSmooth();
ellipse(50, 100, 100, 55);
smooth();
ellipseMode(CORNERS);
fill(64);
ellipse(0, 155, 200, 190);
rectMode(CORNERS);
noFill();
strokeWeight(2);
stroke(255);
rect(0,155,200,190);
Demo3.
size(300, 300);
background(0);
noStroke();
fill(225, 0, 0);
rect(0, 0, 100, 50);
fill(0, 80, 0);
rect(100, 0, 100, 50);
fill(150, 150, 255);
rect(200, 0, 100, 50);
fill(128);
rect(0, 50, 300, 100);
Creacion propia aplicando lo aprendido:
size(400,400);
background(0);
smooth();
fill(#990000);
ellipse(200,200,400,400);
smooth();
fill(#990033);
ellipse(200,200,350,350);
smooth();
fill(#990066);
ellipse(200,200,300,300);
smooth();
fill(#990099);
ellipse(200,200,250,250);
smooth();
fill(#9900CC);
ellipse(200,200,200,200);
smooth();
fill(#9900FF);
ellipse(200,200,150,150);
//---------------------------------ellipses
smooth();
fill(#9900CC);
rect(150,150,100,100);
smooth();
fill(#990099);
rect(160,160,80,80);
smooth();
fill(#990066);
rect(170,170,60,60);
smooth();
fill(#990033);
rect(180,180,40,40);
smooth();
fill(#990000);
rect(190,190,20,20);
//-------------------------------rects1
smooth();
fill(#990000);
rect(252,190,20,20);
smooth();
fill(#990033);
rect(277,190,20,20);
smooth();
fill(#990066);
rect(302,190,20,20);
smooth();
fill(#990099);
rect(327,190,20,20);
smooth();
fill(#9900CC);
rect(352,190,20,20);
smooth();
fill(#9900FF);
rect(377,190,20,20);
//--------------------------------rect2,right
smooth();
fill(#990000);
rect(128,190,20,20);
smooth();
fill(#990033);
rect(103,190,20,20);
smooth();
fill(#990066);
rect(78,190,20,20);
smooth();
fill(#990099);
rect(53,190,20,20);
smooth();
fill(#9900CC);
rect(28,190,20,20);
smooth();
fill(#9900FF);
rect(3,190,20,20);
//----------------------------rect3,left
smooth();
fill(#990000);
rect(190,128,20,20);
smooth();
fill(#990033);
rect(190,103,20,20);
smooth();
fill(#990066);
rect(190,78,20,20);
smooth();
fill(#990099);
rect(190,53,20,20);
smooth();
fill(#9900CC);
rect(190,28,20,20);
smooth();
fill(#9900FF);
rect(190,3,20,20);
//--------------------------------rect4,up
smooth();
fill(#990000);
rect(190,252,20,20);
smooth();
fill(#990033);
rect(190,277,20,20);
smooth();
fill(#990066);
rect(190,302,20,20);
smooth();
fill(#990099);
rect(190,327,20,20);
smooth();
fill(#9900CC);
rect(190,352,20,20);
smooth();
fill(#9900FF);
rect(190,377,20,20);
//--------------------------------rect5,down
No hay comentarios:
Publicar un comentario