Code

size (100, 100);
background (255, 180, 0);
line (10,10,  10,50);
line (20, 10,  20,50);
line (30, 10,  30, 50);
line (40, 10,  50, 50);
fill (255, 255, 1);
triangle (50, 10,  60, 50,  70, 10);
strokeWeight (3);
line (80, 10,  60, 90);
smooth();
line (90, 10,  70, 90);

0002 - Basic Primitives (a): Copy a simple figure

Statement:Use code commands such as background(), line(), fill() and smooth() to reproduce this simple drawing.
Exercise 02 Basic Primitives A

hide statement