Easy Flags: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<pre id='shellbody'> | <pre id='shellbody'> | ||
<canvas></canvas> | <canvas width=150 height=100></canvas> | ||
</pre> | </pre> | ||
<pre id='shelljs'> | <pre id='shelljs'> |
Revision as of 10:22, 1 August 2021
<canvas width=150 height=100></canvas>
drawFlag(document.querySelector('canvas').getContext('2d'));
1) Libya
What is 6 times 7?
Input
xxxxxxxxxx
function drawFlag(ctx)
{
ctx.fill = 'green';
ctx.fillRect(0,0,75,100);
}
Output
function drawFlag(ctx) { ctx.fill = 'green'; ctx.fillRect(0,0,75,100); }
function drawFlag(ctx) { ctx.fill = 'green'; ctx.fillRect(0,0,150,100); }