Assessment2021 09Medium: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
[[Image:Banners_CheckStripe.png|border]] | [[Image:Banners_CheckStripe.png|border]] | ||
<pre class='usr'> | <pre class='usr'> | ||
function drawFlag(ctx) | function drawFlag(ctx) | ||
{ | { | ||
Line 25: | Line 20: | ||
[[Image:Banners_Stripes.png|border]] | [[Image:Banners_Stripes.png|border]] | ||
<pre class='usr'> | <pre class='usr'> | ||
function drawFlag(ctx) | function drawFlag(ctx) | ||
{ | { | ||
Line 38: | Line 28: | ||
==Squares== | ==Squares== | ||
<div class='qu' data-width="100" data-height="300"> | <div class='qu' data-width="100" data-height="300"> | ||
* | *100 by 300 | ||
*Squares are 50 by 50 | *Squares are 50 by 50 | ||
*Cross has thickness 6 | *Cross has thickness 6 | ||
[[Image:Banners_Squares.png|border]] | [[Image:Banners_Squares.png|border]] | ||
<pre class='usr'> | <pre class='usr'> | ||
function drawFlag(ctx) | function drawFlag(ctx) | ||
{ | { | ||
Line 59: | Line 44: | ||
[[Image:Banners_ShieldBorder.png|border]] | [[Image:Banners_ShieldBorder.png|border]] | ||
<pre class='usr'> | <pre class='usr'> | ||
function drawFlag(ctx) | function drawFlag(ctx) | ||
{ | { |
Latest revision as of 07:37, 18 September 2021
1) Check Stripe
2) Stripes
- 102 by 300
- 7 stripes
- 2 pixel white border
- each stripe is 28 pixels
Input
xxxxxxxxxx
function drawFlag(ctx)
{
}
Output
function drawFlag(ctx) { }
3) Squares
- 100 by 300
- Squares are 50 by 50
- Cross has thickness 6
Input
xxxxxxxxxx
function drawFlag(ctx)
{
}
Output
function drawFlag(ctx) { }