地図:アメリカ合衆国(米国・北米)

説明

指定した座標にアメリカ合衆国(米国・北米)の地図を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

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

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

function map(x,y,c){var n=128;
uart(n,14,3,x,y,c,23,31,31,31,31,63,63,63);
uart(n,14,3,x+8,y,c,0,224,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,0,0,0,255,255,255,255,255);
uart(n,14,3,x+24,y,c,0,0,0,0,255,255,255,255);
uart(n,14,3,x+32,y,c,0,0,0,0,192,248,248,255);
uart(n,14,3,x+40,y,c,0,0,0,0,0,0,0,252);
uart(n,14,3,x+56,y,c,0,0,12,12,12,14,28,252);
y=y+8;
uart(n,14,3,x,y,c,127,127,127,255,255,255,255,255);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,255,255,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,204,204,220,223,223,222,223,255);
uart(n,14,3,x+48,y,c,1,3,3,15,31,63,255,255);
uart(n,14,3,x+56,y,c,248,248,248,240,224,192,192,192);
y=y+8;
uart(n,14,3,x,y,c,127,127,127,127,63,63,63,15);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,255,255,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,255,255,255,255,255);
uart(n,14,3,x+48,y,c,255,255,254,255,255,255,255,255);
uart(n,14,3,x+56,y,c,128,128,0,0,128,192,0,128);
y=y+8;
uart(n,14,3,x,y,c,7,7,3,0,0,0,0,0);
uart(n,14,3,x+8,y,c,255,255,255,127,31,15,0,0);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,31,15);
uart(n,14,3,x+24,y,c,255,255,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,255,255,255,255,255);
uart(n,14,3,x+48,y,c,254,254,252,248,240,240,240,240);
y=y+8;
uart(n,14,3,x+16,y,c,7,7,2,0,0,0,0,0);
uart(n,14,3,x+24,y,c,255,255,63,31,30,28,12,6);
uart(n,14,3,x+32,y,c,255,255,193,0,0,0,0,0);
uart(n,14,3,x+40,y,c,131,128,0,0,0,0,0,0);
uart(n,14,3,x+48,y,c,240,56,24,28,30,14,6,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(8,2,1);

目次に戻る