みんなのコード保管庫
//描画用関数
function France() {
fill("white");
rect(cfx,cfy,300,200);//白
fill(0,35,149);
rect(cfx,cfy,100,200);//青
fill(237,41,57);
rect(cfx+200,cfy,100,200);//赤
answer="フランス";
}
function Germany() {
fill("black");
rect(cfx,cfy,1000/3,200/3);//黒
fill(221,0,0);
rect(cfx,cfy+200/3,1000/3,200/3);//赤
fill(255,206,0);
rect(cfx,cfy+400/3,1000/3,200/3);//金
answer="ドイツ";
}
function Poland() {
fill("white");
rect(cfx,cfy,320,100);//白
fill(220,20,60);
rect(cfx,cfy+100,320,100);//赤
answer="ポーランド";
}
function Russia() {
fill("white");
rect(cfx,cfy,300,200/3);//白
fill(0,57,166);
rect(cfx,cfy+200/3,300,200/3);//青
fill(213,43,30);
rect(cfx,cfy+400/3,300,200/3);//赤
answer="ロシア";
}
function Romania(){
fill(0,43,127);
rect(cfx,cfy,100,200);//青
fill(252,209,22);
rect(cfx+100,cfy,100,200);//黄
fill(206,17,38);
rect(cfx+200,cfy,100,200);//赤
answer="ルーマニア";
}
function Lithuania(){
fill(253,185,19);
rect(cfx,cfy,1000/3,200/3);//黄
fill(0,106,68);
rect(cfx,cfy+200/3,1000/3,200/3);//緑
fill(193,39,45);
rect(cfx,cfy+400/3,1000/3,200/3);//赤
answer="リトアニア";
}
function Estonia(){
fill(0,114,206);
rect(cfx,cfy,2200/7,200/3);
fill("Black");
rect(cfx,cfy+200/3,2200/7,200/3);
fill("white");
rect(cfx,cfy+400/3,2200/7,200/3);
answer="エストニア";
}
function Latvia(){
fill(158,48,57);
rect(cfx,cfy,400,200);
fill("white");
rect(cfx,cfy+80,400,40);
answer="ラトビア";
}
function Bulgaria(){
fill("white");
rect(cfx,cfy,1000/3,200/3);
fill(0,150,110);
rect(cfx,cfy+200/3,1000/3,200/3);
fill(214,38,18);
rect(cfx,cfy+400/3,1000/3,200/3);
answer="ブルガリア";
}
function Hungary(){
fill(205,42,64);
rect(cfx,cfy,400,200/3);
fill("white");
rect(cfx,cfy+200/3,400,200/3);
fill(67,111,77);
rect(cfx,cfy+400/3,400,200/3);
answer="ハンガリー";
}
function Monaco(){
fill(206,17,38);
rect(cfx,cfy,250,100);
fill(255);
rect(cfx,cfy+100,250,100);
answer="モナコ";
}
function Ukraine(){
fill(0,90,187);
rect(cfx,cfy,300,100);
fill(255,213,0);
rect(cfx,cfy+100,300,100);
answer="ウクライナ";
}
function Czech(){
fill("white");
rect(cfx,cfy,300,100);
fill(215,20,26);
rect(cfx,cfy+100,300,100);
fill(17,69,126);
triangle(cfx,cfy,cfx,cfy+200,cfx+150,cfy+100);
answer="チェコ";
}
function Finland(){
fill("white");
rect(cfx,cfy,3600/11,200);
fill(0,53,128);
rect(cfx,cfy+800/11,3600/11,600/11);
rect(cfx+1000/11,cfy,600/11,200);
answer="フィンランド";
}
function Sweden(){
fill(0,106,167);
rect(cfx,cfy,320,200);
fill(254,204,0);
rect(cfx,cfy+80,320,40);
rect(cfx+100,cfy,40,200);
answer="スウェーデン";
}
function Denmark(){
fill(198,12,48);
rect(cfx,cfy,1850/7,200);
fill("white");
rect(cfx,cfy+600/7,1850/7,200/7);
rect(cfx+600/7,cfy,200/7,200);
answer="デンマーク";
}
function Norway(){
fill(239,43,45);
rect(cfx,cfy,275,200);
fill("white");
rect(cfx,cfy+75,275,50);
rect(cfx+75,cfy,50,200);
fill(0,40,104);
rect(cfx,cfy+87.5,275,25);
rect(cfx+87.5,cfy,25,200);
answer="ノルウェー";
}
function Iceland(){
fill(2,82,156);
rect(cfx,cfy,2500/9,200);
fill("white");
rect(cfx,cfy+700/9,2500/9,400/9);
rect(cfx+700/9,cfy,400/9,200);
fill(220,30,53);
rect(cfx,cfy+800/9,2500/9,200/9);
rect(cfx+800/9,cfy,200/9,200);
answer="アイスランド";
}
function Slovakia(){
fill("white");
rect(cfx,cfy,300,200/3);
fill(11,78,162);
rect(cfx,cfy+200/3,300,200/3);
fill(238,28,37);
rect(cfx,cfy+400/3,300,200/3);
fill("white");
quad(cfx+48,cfy+44,cfx+150,cfy+44,cfx+154,cfy+108,cfx+46,cfy+108);
arc(cfx+100,cfy+108,108,98,0,PI);
fill(238,28,37);
quad(cfx+52,cfy+48,cfx+146,cfy+48,cfx+150,cfy+108,cfx+50,cfy+108);
arc(cfx+100,cfy+108,100,90,0,PI);
fill("white");
rect(cfx+95,cfy+50,10,100);
rect(cfx+75,cfy+64,50,10);
rect(cfx+70,cfy+85,60,10);
fill(11,78,162);
arc(cfx+100,cfy+128,84,52,0,PI);
ellipse(cfx+100,cfy+130,40,45);
ellipse(cfx+72,cfy+130,30,25);
ellipse(cfx+128,cfy+130,30,25);
arc(cfx+66,cfy+128,18,25,0,PI);
arc(cfx+134,cfy+128,18,25,0,PI);
answer="スロバキア";
}
function Greece(){
fill(13,94,175);
rect(cfx,cfy,300,200);
fill("white");
rect(cfx+400/9,cfy,200/9,1000/9);
rect(cfx,cfy+400/9,1000/9,200/9);
rect(cfx+1000/9,cfy+200/9,1700/9,200/9);
rect(cfx+1000/9,cfy+600/9,1700/9,200/9);
rect(cfx,cfy+1000/9,300,200/9);
rect(cfx,cfy+1400/9,300,200/9);
answer="ギリシャ";
}
function Itary () {
fill("white");
rect(cfx,cfy,300,200);
fill(0,146,70);
rect(cfx,cfy,100,200);
fill(206,43,55);
rect(cfx+200,cfy,100,200);
answer="イタリア";
}
function Austria () {
fill(237,41,57);
rect(cfx,cfy,300,200);
fill("white");
rect(cfx,cfy+200/3,300,200/3);
answer="オーストリア";
}
function Ileland () {
fill("white");
rect(cfx,cfy,400,200);
fill(22,155,98);
rect(cfx,cfy,400/3,200);
fill(255,136,62);
rect(cfx+800/3,cfy,400/3,200);
answer="アイルランド";
}
function Switzerland() {
fill("red");
rect(cfx,cfy,200,200);
fill("white");
rect(cfx+37.5,cfy+81.25,125,37.5);
rect(cfx+81.25,cfy+37.5,37.5,125);
answer="スイス";
}
function Netherlands(){
fill(174,28,40);
rect(cfx,cfy,300,200/3);
fill("white");
rect(cfx,cfy+200/3,300,200/3);
fill(33,70,139);
rect(cfx,cfy+400/3,300,200/3);
answer="オランダ";
}
function Luxembourg(){
fill(237,41,57);
rect(cfx,cfy,1000/3,200/3);
fill("white");
rect(cfx,cfy+200/3,1000/3,200/3);
fill(0,161,222);
rect(cfx,cfy+400/3,1000/3,200/3);
answer="ルクセンブルク";
}
function Belgium(){
fill(0,0,0);
rect(cfx,cfy,1000/13,200);
fill(250,224,66);
rect(cfx+1000/13,cfy,1000/13,200);
fill(237,41,57);
rect(cfx+2000/13,cfy,1000/13,200);
answer="ベルギー";
}
function GreatBriten(){
fill(1,33,105);
rect(cfx,cfy,1000/3,200);
fill("white");
quad(cfx,cfy,cfx+1000/3,cfy+200,cfx+883.381/3,cfy+200,cfx,cfy+23.3238);
quad(cfx,cfy,cfx+1000/3,cfy+200,cfx+1000/3,cfy+176.6762,cfx+38.873,cfy);
quad(cfx+1000/3,cfy,cfx,cfy+200,cfx,cfy+176.6762,cfx+883.381/3,cfy);
quad(cfx+1000/3,cfy,cfx,cfy+200,cfx+38.873,cfy+200,cfx+1000/3,cfy+23,3238);
fill(200,16,46);
quad(cfx,cfy,cfx,cfy+15.55,cfx+140.75,cfy+100,cfx+500/3,cfy+100);
quad(cfx+500/3,cfy+100,cfx+1000/3,cfy+200,cfx+1000/3,cfy+184.45
,cfx+192.582,cfy+100);
quad(cfx+1000/3,cfy,cfx+500/3,cfy+100,cfx+140.75,cfy+100,cfx+307.418,cfy);
quad(cfx+500/3,cfy+100,cfx,cfy+200,cfx+25.915,cfy+200,cfx+192.582,cfy+100);
fill("white");
rect(cfx+400/3,cfy,200/3,200);
rect(cfx,cfy+200/3,1000/3,200/3);
fill(200,16,46);
rect(cfx+440/3,cfy,40,200);
rect(cfx,cfy+80,1000/3,40);
answer="イギリス";
}
function NorthMachednia(){
fill(206,32,40);
rect(cfx,cfy,400,200);
fill(249,214,22);
triangle(cfx,cfy,cfx+200,cfy+100,cfx+60,cfy);
triangle(cfx+180,cfy,cfx+200,cfy+100,cfx+220,cfy);
triangle(cfx+340,cfy,cfx+200,cfy+100,cfx+400,cfy);
triangle(cfx+400,cfy+80,cfx+200,cfy+100,cfx+400,cfy+120);
triangle(cfx+340,cfy+200,cfx+200,cfy+100,cfx+400,cfy+200);
triangle(cfx+180,cfy+200,cfx+200,cfy+100,cfx+220,cfy+200);
triangle(cfx,cfy+200,cfx+200,cfy+100,cfx+60,cfy+200);
triangle(cfx,cfy+80,cfx+200,cfy+100,cfx,cfy+120);
fill(206,32,40);
ellipse(cfx+200,cfy+100,500/7,500/7);
fill(249,214,22);
ellipse(cfx+200,cfy+100,400/7,400/7);
answer="北マケドニア";
}