LetterForm (Processing)

Screen Shot 2020-03-27 at 17.12.02

Primeiro exercício: criação de 1 ou mais caracteres através da utilização das funções de desenho do Processing.

size (500, 650);
background (255, 0, 0);
fill (0, 0, 0);

//Y
strokeWeight (5);
triangle (150, 100, 200, 100, 175, 150);
line (175, 150, 175, 200);

//T
strokeWeight (5);
strokeJoin (ROUND);
line (50, 50, 100, 50);
line (75, 50, 75, 120);

//P
circle (300, 50, 50);
line (275, 150, 275, 25);

// i
strokeWeight (5);
strokeCap (ROUND);
line (130, 250, 130, 350 );

//A
triangle (250, 550, 275, 500, 300, 550);
line (250, 550, 225, 600);
line (300, 550, 325, 600);

//D
line (75, 450, 75, 550);
arc (75, 500, 70, 100, -HALF_PI, PI/2);

//D
line (350, 450, 350, 550);
arc (350, 500, 70, 100, -HALF_PI, PI/2);

//S
line (170, 300, 200, 350);
noStroke ();
//curve (150, 470, 170, 300, 200, 300, 200, 400);
arc (185, 300, 35, 50, -PI, 0);
arc (185, 350, 35, 50, 0, PI);

//E
rect (375,100, 50, 100);
strokeWeight (3);
stroke (255, 0, 0);
line (400, 130, 425, 130);
line (400, 170, 425, 170);

noStroke();
rect (150, 500, 50, 100);
stroke (255, 0, 0);
line (175, 530, 200, 530);
line (175, 570, 200, 570);

 

Deixe um comentário