Skip to content

Instantly share code, notes, and snippets.

@kumo
Last active August 29, 2015 14:01
Show Gist options
  • Save kumo/e4aa1c02853bb1fd886e to your computer and use it in GitHub Desktop.
Save kumo/e4aa1c02853bb1fd886e to your computer and use it in GitHub Desktop.
Randomly rotate shapes in Sketch.app
for (var i=0; i<selection.count(); i++) {
var layer = selection[i];
[layer setRotation:Math.random() * 360];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment