Pagina de inicio
/
Tecnología
/
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)

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)

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)

Solución

avatar
Yahirprofessionell · Tutor durante 6 años
expert verifiedVerificación de expertos
4.0 (268 votos)

Responder

The correct answer is: rec $(0,0,100,100)$<br /><br />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.
Haz clic para calificar: