地図:ヨーロッパ(EU)

説明

指定した座標にヨーロッパ(EU)の地図を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

[もう1つのサンプルプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x,y,c,0,1,1,0,0,0,0,0);
uart(n,14,3,x+8,y,c,0,224,224,0,0,0,0,0);
uart(n,14,3,x+16,y,c,0,0,0,0,0,0,1,3);
uart(n,14,3,x+24,y,c,14,31,63,127,255,247,243,247);
uart(n,14,3,x+32,y,c,0,226,251,249,199,227,231,255);
uart(n,14,3,x+40,y,c,252,252,254,254,255,255,255,255);
uart(n,14,3,x+48,y,c,0,0,0,0,0,0,128,192);
y=y+8;
uart(n,14,3,x,y,c,0,0,0,0,0,0,0,1);
uart(n,14,3,x+8,y,c,0,0,0,8,16,24,216,200);
uart(n,14,3,x+16,y,c,15,31,31,31,31,19,3,11);
uart(n,14,3,x+24,y,c,239,207,207,198,227,195,131,143);
uart(n,14,3,x+32,y,c,255,255,255,127,255,255,255,255);
uart(n,14,3,x+40,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+48,y,c,192,192,208,240,248,248,255,252);
y=y+8;
uart(n,14,3,x,y,c,3,3,0,0,0,0,0,0);
uart(n,14,3,x+8,y,c,140,156,60,124,0,3,255,63);
uart(n,14,3,x+16,y,c,31,0,30,255,255,255,255,255);
uart(n,14,3,x+24,y,c,15,15,255,255,255,255,255,255);
uart(n,14,3,x+32,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+40,y,c,255,255,255,254,254,254,255,255);
uart(n,14,3,x+48,y,c,216,128,0,0,0,0,128,192);
y=y+8;
uart(n,14,3,x,y,c,0,0,24,30,63,63,127,127);
uart(n,14,3,x+8,y,c,63,63,63,127,255,249,248,192);
uart(n,14,3,x+16,y,c,255,255,255,255,249,25,28,76);
uart(n,14,3,x+24,y,c,255,255,255,255,255,255,255,63);
uart(n,14,3,x+32,y,c,255,255,240,226,192,192,192,192);
uart(n,14,3,x+40,y,c,255,127,127,63,7,3,0,0);
uart(n,14,3,x+48,y,c,128,128,192,224,240,248,232,96);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(12,3,1);

目次に戻る