xxxxxxxxxx
int x = 200;
int y = 200;
size (500, 500);
background(255, 204, 0); // the yellow color behind the sketch.
//Creating a Combined Shape
//colour and format
stroke (0,0,0); // Colour of the stroke
strokeWeight (7); // Thickness of the stroke
fill (70, 221, 214); // What colour is the object?
//shape
rect (x, y, 100, 100); // rect (x, y, width, height); this is the default version of drawing RECT where x, and y are the top left hand corner
// color and format
fill (221, 70, 209);
strokeWeight (3);
//shapes
ellipse (x+50, y+50, 50, 50); // ellipse (x, y, width, height); uses x and y for center
line (x+50, y, x+50, y+25); // line (x+50, y, x+50, y+25); the x1 and x2 values are the same as it is a straight vertical line