Difference between revisions of "Flags: Worked Examples"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
==Benin== | ==Benin== | ||
<video src='/resources/assets/flagBenin.avi'></video> | <video src='/resources/assets/flagBenin.avi'></video> | ||
AWH | |||
<div class='qu' data-width="150" data-height="100"> | <div class='qu' data-width="150" data-height="100"> | ||
* The flag is 150 by 100 | * The flag is 150 by 100 |
Revision as of 09:42, 18 August 2021
Benin
<video src='/resources/assets/flagBenin.avi'></video> AWH
- The flag is 150 by 100
- The green rectangle is 50 by 100
- The yellow and red rectangles are 100 by 50
function drawFlag(ctx) { }
function drawFlag(ctx) { ctx.fillStyle = 'green'; ctx.fillRect(0,0,50,100); ctx.fillStyle = 'yellow'; ctx.fillRect(50,0,100,50); ctx.fillStyle = 'red'; ctx.fillRect(50,50,100,50); }