using the line function with the arc function how do i draw a D in the middle of the screen

edited March 2016 in How To...

How would I use height/2 and Width/2 to center it on the screen?

Tagged:

Answers

  • edited March 2016

    Take a look at the translate() function. You can for example say

    translate(width/2, height/2); 
    

    If you would then draw an ellipse it would be drawn to the center of the screen.

Sign In or Register to comment.