Assessment2021 09Medium: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
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 43: | Line 33: | ||
[[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) | ||
{ | { |
Revision as of 13:16, 14 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
- 294 by 336
- Squares are 50 by 50
- Cross has thickness 6
Input
xxxxxxxxxx
function drawFlag(ctx)
{
}
Output
function drawFlag(ctx) { }