Question
your more anywhere you in both the Xand I direction. Which of the following lines of code would you trip? hadgrantexizes 299 Meight C. stroks(57,0,214) haps 210.247) draw hinctionol backgran (255,255,255) Y,30,30 k I manckind mouser draw a functiong I badgroun (255,255,255) ellipuelmousex 300,30,30
Solution
4.7
(330 Votes)
Camille
Veteran ยท Tutor for 9 years
Answer
The question asks which line of code you would "trip" (presumably meaning remove or comment out) to allow the ellipse to move anywhere in both the X and Y directions. Currently, the ellipse's Y position is fixed at 30.The line you need to remove is:```processingY = 30;```By removing this line, the `ellipse()` function will use the `mouseY` value for the vertical position, allowing movement in both the X (already using `mouseX`) and Y directions.