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)

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
Weryfikacja ekspertów
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.