def shrink():
pic = getPic()
newpic = makeEmptyPicture(getWidth(pic)/2, getHeight(pic)/2)
for x in range(0, getWidth(pic), 2):
for y in range(0, getHeight(pic), 2):
color = getColor(getPixel(pic, x, y))
setColor(getPixel(newpic, x/2, y/2), color)
show(newpic)