Open shivani517 opened 8 years ago
Created a variable, theta = 0.3-atan2(600-mouseY, mouseX), and temporarily translated the origin to 0, 600 using pushMatrix() and popMatrix() and translate(0,600) to use that as an axis that I used rotate(theta) on
rotate(), translate(), pushMatrix(), popMatrix()