# draw five rectangles of the same size
import drawSvg as draw

d = draw.Drawing(200, 200, origin='center')

d.append(draw.Rectangle(0,0,50,50, fill='red', stroke='black'))
d.append(draw.Rectangle(-20,35,50,50, fill='red', stroke='black'))
d.append(draw.Rectangle(5,45,50,50, fill='red', stroke='black'))
d.append(draw.Rectangle(-50,50,50,50, fill='red', stroke='black'))
d.append(draw.Rectangle(-100,10,50,50, fill='red', stroke='black'))

d


# ----- DRILL -----
# Write some code that draws a bullseye:
# an inner red circle superimposed atop 
# a green circle superimposed atop 
# an outer blue circle (you should therefore see a red circle, green ring and blue ring)
# define a single variable 's' that scales the size of the bullseye

import drawSvg as draw

d = draw.Drawing(200, 200, origin='center')

s = 0.5 # scale bullseye by this amount

d.append(draw.Circle(0,0,s*100, fill='blue')) # outer part
d.append(draw.Circle(0,0,s*75, fill='green')) # central part
d.append(draw.Circle(0,0,s*50, fill='red')) # inner part

d

