Computer Programming
My assignment advises me "To check that the mouse is in the top half of the canvas, you'll need to compare the mouse y position with the middle of the canvas (200 pixels down) - it should be smaller than that value. If you do it right, the button should only change color when you click in the top half." I'm not sure how to move forward.
Please sign in to leave a comment.