1.3 Rotation of a square

Scratch solution

View solution

This is just one of many possible solutions:

when green flag clicked
clear
go to x: (0) y: (0)
pen down
forever
  repeat (4)
    move (100) steps
    turn cw (90) degrees
  end
  turn cw (15) degrees
  change pen color by (10)
end

Back to programming challenge