html5 canvas rotate rectangles

Job ID: 33101095

Budget: $10 – $30 USD

Hi,

im filling a canvas with rectangles. The code is attached.
You need to update the code with following options:

a) var rotateAll = "30"; -> rotate every single rectangle around its center point 30 degrees
b) var rotateAllContinously = "30"; -> rotate the first rectangle around its center point 30 degrees, the second 60deg, the third 90deg, the 4th 120deg...
c) var rotate2nd = "30"; -> rotate every 2nd rectangle 30 degrees
d) var rotate3rd = "30"; -> rotate every 3rd rectangle 30 degrees
e) var rotate4th = "30"; -> rotate every 4th rectangle 30 degrees

I need the update completed within next hours.
Related categories: JavaScript CSS HTML5 HTML jQuery / Prototype