Creating triangles that spin in place when mouse over
in
Programming Questions
•
9 months ago
Hey guys,
I'm another one of those guys who is learning Processing for a class. I'm really enjoying my introduction to processing, and I created a basic sketch of a guitar for my very first assignment.
What I'd like to do for my second assignment is make the guitar a little more dynamic. If you're familiar with stringed instruments/guitars, you know that they have tuners to tune the strings.
What I'd like to do to make my guitar a little more lively is to have the tuners "spin" when either the mouse is clicked on the tuners or hovers over them.
The tuners were created with simple triangle shapes that connect to lines which I called "strings." I'd like the triangles to rotate on that point, but an unsure how to make them do that!
Can someone point me in the right direction? Thanks!
I'm another one of those guys who is learning Processing for a class. I'm really enjoying my introduction to processing, and I created a basic sketch of a guitar for my very first assignment.
What I'd like to do for my second assignment is make the guitar a little more dynamic. If you're familiar with stringed instruments/guitars, you know that they have tuners to tune the strings.
What I'd like to do to make my guitar a little more lively is to have the tuners "spin" when either the mouse is clicked on the tuners or hovers over them.
The tuners were created with simple triangle shapes that connect to lines which I called "strings." I'd like the triangles to rotate on that point, but an unsure how to make them do that!
Can someone point me in the right direction? Thanks!
1