地図:世界

説明

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

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

function map(x,y,c){var n=128;
uart(n,14,3,x,y,c,0,0,31,63,111,7,7,7);
uart(n,14,3,x+8,y,c,0,0,248,255,248,253,255,255);
uart(n,14,3,x+16,y,c,87,199,163,230,128,224,224,128);
uart(n,14,3,x+24,y,c,240,224,192,32,1,0,7,7);
uart(n,14,3,x+32,y,c,0,0,112,191,191,127,255,255);
uart(n,14,3,x+40,y,c,0,30,127,255,255,255,255,255);
uart(n,14,3,x+48,y,c,0,0,255,255,255,254,255,255);
uart(n,14,3,x+56,y,c,0,0,224,240,176,32,0,128);
y=y+8;
uart(n,14,3,x,y,c,15,15,15,7,3,3,1,0);
uart(n,14,3,x+8,y,c,254,252,248,208,0,0,192,96);
uart(n,14,3,x+24,y,c,29,24,15,31,63,63,63,63);
uart(n,14,3,x+32,y,c,99,31,7,255,255,255,255,255);
uart(n,14,3,x+40,y,c,255,255,255,255,63,207,134,6);
uart(n,14,3,x+48,y,c,255,253,252,254,254,252,56,24);
uart(n,14,3,x+56,y,c,64,0,64,64,128,0,0,0);
y=y+8;
uart(n,14,3,x+8,y,c,63,15,15,31,15,15,7,3);
uart(n,14,3,x+16,y,c,0,192,192,248,252,248,248,248);
uart(n,14,3,x+24,y,c,63,27,1,1,0,0,0,0);
uart(n,14,3,x+32,y,c,255,255,254,252,252,252,253,249);
uart(n,14,3,x+40,y,c,2,0,0,0,0,0,0,0);
uart(n,14,3,x+48,y,c,8,48,22,11,4,0,0,1);
uart(n,14,3,x+56,y,c,0,0,0,120,12,0,104,248);
y=y+8;
uart(n,14,3,x+8,y,c,3,3,3,3,3,1,1,0);
uart(n,14,3,x+16,y,c,224,224,192,192,128,0,0,128);
uart(n,14,3,x+32,y,c,249,112,112,0,0,0,0,0);
uart(n,14,3,x+48,y,c,3,3,3,0,0,0,0,0);
uart(n,14,3,x+56,y,c,252,252,252,48,0,1,0,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(8,6,1);

目次に戻る