//sets screen size
size(250,250);
//sets screen background to white
background(255);
//smooth edges
smooth();
//no stroke on shapes created
noStroke();
//rectangles will be drawn from the centre point
//the first/second value is x and y, third/fourth value is width and height
rectMode (CENTER);
//moves the origin to the centre of the image
translate(125,125);
//this is the loop to create the shapes
//it starts at 180, is greater than 0, and decreases by 10
for(int x=180; x>0;x-=10){
//this changes the colour from dark to light red
fill((x-255)*-1,0,0);
//this changes the size of the shape
rect(0,0,x,x);
//this changes the angle of the shape by 0.5
rotate (0.5);
}