// makes a small rectangle inside a big rectangle size(300,200); // variables describing big rectangle int bigx = 100; int bigy = 100; int bigWidth = 60; int bigHeight = 100; int bigColor = color(159,125,222); // variables describing small square int smallx = 110; int smally = 100; int smallWidth = 30; int smallHeight = 20; int smallColor = color(33,224,20); background(250,245,81); stroke(0,0); rectMode(CENTER); // draw big square fill(bigColor); rect(bigx, bigy, bigWidth, bigHeight); // draw small square fill(smallColor); rect(smallx, smally, smally, smallWidth, smallHeight);