Skip to content

Instantly share code, notes, and snippets.

@grkvlt
Created October 13, 2017 15:41
Show Gist options
  • Save grkvlt/1b824bbd922a24e8b2f51b02cd9b6840 to your computer and use it in GitHub Desktop.
Save grkvlt/1b824bbd922a24e8b2f51b02cd9b6840 to your computer and use it in GitHub Desktop.
Exploring Iterated Function Systems
GestureUtilities.addGestureListenerTo(controller.getEditor(), new RotationListener() {
@Override
public void rotate(RotationEvent re) {
if (controller.getEditor().isVisible()) {
Transform selected = controller.getEditor().getSelected();
if (selected != null && !selected.isMatrix()) {
selected.r -= Math.toRadians(re.getRotation());
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment