Created
October 13, 2017 15:41
-
-
Save grkvlt/1b824bbd922a24e8b2f51b02cd9b6840 to your computer and use it in GitHub Desktop.
Exploring Iterated Function Systems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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