quarta-feira, 6 de maio de 2009

Processing (ainda engatinhando)

Primeiro trabalhinho no Processing!


Código:
size(400,400);
background(255);
stroke(77,43,0);
fill(255,203,10);
rect(50,50,300,300);
line(0,0,50,50);
line(400,0,350,50);
line(0,400,50,350);
line(400,400,350,350);
fill(255,0,0);
ellipse(200,200,200,200);
fill(255,145,10,240);
ellipse(100,200,200,200);
fill(255,145,10,240);
ellipse(300,200,200,200);
fill(255,59,10,170);
ellipse(150,120,200,200);
fill(255,59,10,170);
ellipse(250,292,200,200);
fill(255,203,10,120);
ellipse(150,292,200,200);
fill(255,203,10,120);
ellipse(250,120,200,200);
fill(255,0,0,0);
ellipse(200,200,200,200);
fill(255,0,0,0);
ellipse(100,200,200,200);
fill(255,0,0,0);
ellipse(300,200,200,200);
fill(255,0,0,0);
ellipse(150,120,200,200);
fill(255,0,0,0);
ellipse(250,292,200,200);
fill(77,43,0);
rect(0,0,400,50);
fill(77,43,0);
rect(0,0,50,400);
fill(77,43,0);
rect(50,350,400,400);
fill(77,43,0);
rect(350,0,400,400);

ps.: a imagem é um print screen, por isso sem a devida qualidade.

Nenhum comentário:

Postar um comentário