0

How do you get the height from a fillRect? I'm not too sure on how to solve it

The question I got was, A fillRect (36,10,22,12) indicates a rectangle with a height of... and the answer is 12 but I'm not sure why or how it's 12. i've reviewed the lesson again and again and I feel like just being dumb. Please help me!

3rd Oct 2018, 6:09 PM
Demon Assassin
Demon Assassin - avatar
9 odpowiedzi
+ 2
It's 12 because the last parameter is always the height. (The first and second form the starting coordinates, the third is the width.) https://www.w3schools.com/tags/canvas_fillrect.asp
3rd Oct 2018, 11:30 PM
Janning⭐
Janning⭐ - avatar
0
the correct answer is :- 12
2nd Aug 2019, 9:53 AM
Vicky Soni
Vicky Soni - avatar
0
fillRect (36,10,22,12) indicates a rectangle with a height of 12 (the last parameter)
3rd Jun 2020, 9:26 AM
revita nisya afifah
0
the answer is the last paramter : 12
17th Jul 2020, 8:33 AM
FAOUZI Hassan
FAOUZI Hassan - avatar
0
the correct answer is :- 12
29th Jul 2020, 6:53 PM
MD. SAZZAD HUSSAIN
MD. SAZZAD HUSSAIN - avatar
0
12
1st Jul 2021, 5:12 PM
Kaniz Hossain
Kaniz Hossain - avatar
0
12
9th Aug 2021, 2:46 PM
HAMDANI YOUSSEF
HAMDANI YOUSSEF - avatar
0
fillRect (36,10,22,12) indicates a rectangle with a height of... Answer is:- 12
30th Jan 2022, 2:17 PM
Mithun BL
0
12
2nd Jun 2022, 9:10 PM
Noah Mugaya
Noah Mugaya - avatar