Difference between revisions of "Assessment2021 09Medium"
Jump to navigation
Jump to search
(Created page with "<pre id='shellbody' data-qtp='canvas'></pre> ==Check Stripe== <div class='qu' data-width="294" data-height="336"> *294 by 336 border <pre cl...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<pre id='shellbody' data-qtp='canvas'></pre> | <pre id='shellbody' data-qtp='canvas' noscore=1></pre> | ||
==Check Stripe== | ==Check Stripe== | ||
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 20: | Line 15: | ||
<div class='qu' data-width="102" data-height="300"> | <div class='qu' data-width="102" data-height="300"> | ||
*102 by 300 | *102 by 300 | ||
*7 stripes | |||
*2 pixel white border | |||
*each stripe is 28 pixels | |||
[[Image:Banners_Stripes.png|border]] | [[Image:Banners_Stripes.png|border]] | ||
<pre class='usr'> | <pre class='usr'> | ||
function drawFlag(ctx) | function drawFlag(ctx) | ||
{ | { | ||
Line 35: | 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 | |||
*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 54: | Line 44: | ||
[[Image:Banners_ShieldBorder.png|border]] | [[Image:Banners_ShieldBorder.png|border]] | ||
<pre class='usr'> | <pre class='usr'> | ||
function drawFlag(ctx) | function drawFlag(ctx) | ||
{ | { |