Problemas
Our canvas is 600 by 400; which of the following commands draws a square in the top left of the canvas? rect(100,100,300,200) ect(600,400,0,0) rec (0,0,100,100) rec t(100,100,250,150)
Roztwór
Yahir
professionell · Tutor durante 6 años
4
(268 Votos)
Respuesta
The correct answer is: rec
Explanation: The command `rect(x1, y1, x2, y2)` draws a rectangle with the top-left corner at (x1, y1) and the bottom-right corner at (x2, y2). In this case, the top-left corner of the square is at (0, 0) and the bottom-right corner is at (100, 100), so the command `rect(0, 0, 100, 100)` will draw a square in the top left of the canvas.