Alexander Deplov

Rotate copies around center by using Math.PI, rotate objects to center

Rotate copies around center by using Math.PI, rotate objects to center

Code

var amount = 12
var radius = 120

for (var i = 0; i < amount; i++){
    var path = new Path.Rectangle({
        size: 50,
        strokeColor: 'blue',
        position: view.center + [100, 0],
        radius: 10
    })
    
    var angle = i * Math.PI * 2 / amount
    
    path.rotate(angle * (180 / Math.PI) + 90)
    
    path.position.x = view.center.x + radius * Math.cos(angle)
    path.position.y = view.center.y + radius * Math.sin(angle)
    
}