Difference between revisions of "Flags of Russia"

From ProgZoo
Jump to navigation Jump to search
Line 51: Line 51:
   ctx.lineTo(200,136);
   ctx.lineTo(200,136);
   ctx.fill();
   ctx.fill();
}
</pre>
</div>
== Udmurtia ==
<div class=qu data-width=198 data-height=100>
* 198 by 100
* Each arm of the cross is 18
[[Image:FlagUdmurtia.png]]
<pre class=usr>
function drawFlag(ctx){
}
</pre>
<pre class=ans>
function drawFlag(ctx){
}
}
</pre>
</pre>
</div>
</div>

Revision as of 17:09, 20 August 2021


Chita

  • 200 by 136
  • Use yellow, red and lime

FlagChita.png

function drawFlag(ctx){
  ctx.fillStyle = 'yellow';
  ctx.moveTo(0,0);
  ctx.lineTo(100,68);
  ctx.lineTo(0,136);
  ctx.fill();
  ctx.beginPath();
  ctx.fillStyle = 'lime';
  ctx.moveTo(0,0);
  ctx.lineTo(100,68);
  ctx.lineTo(200,68);
  ctx.lineTo(200,0);
  ctx.fill();
  ctx.beginPath();
  ctx.fillStyle = 'red';
  ctx.moveTo(0,136);
  ctx.lineTo(100,68);
  ctx.lineTo(200,68);
  ctx.lineTo(200,136);
  ctx.fill();
}
function drawFlag(ctx){
  ctx.fillStyle = 'yellow';
  ctx.moveTo(0,0);
  ctx.lineTo(100,68);
  ctx.lineTo(0,136);
  ctx.fill();
  ctx.beginPath();
  ctx.fillStyle = 'lime';
  ctx.moveTo(0,0);
  ctx.lineTo(100,68);
  ctx.lineTo(200,68);
  ctx.lineTo(200,0);
  ctx.fill();
  ctx.beginPath();
  ctx.fillStyle = 'red';
  ctx.moveTo(0,136);
  ctx.lineTo(100,68);
  ctx.lineTo(200,68);
  ctx.lineTo(200,136);
  ctx.fill();
}

Udmurtia

  • 198 by 100
  • Each arm of the cross is 18

FlagUdmurtia.png

function drawFlag(ctx){
}
function drawFlag(ctx){
}