Code

//background(), line(), fill() and smooth()

size(100,100);
background(211,139,70);

stroke(0);
strokeWeight(1);
line(10,10, 10,50);
line(20,10, 20,50);
line(30,10, 30,50);
line(40,10, 50,50);

fill(242,32,32);
triangle(50,10, 70,10, 60,50);

stroke(0);
strokeWeight(2);
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.

hide statement