Home
/
Math
/
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

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

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

expert verifiedExpert Verified
4.7(330 Voting)
avatar
CamilleVeteran · 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.<br /><br />The line you need to remove is:<br /><br />```processing<br />Y = 30;<br />```<br /><br />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.<br />
Click to rate: