地図:フランス(仏蘭西)

説明

指定した座標にフランス(仏蘭西)の地図を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

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

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

function map(x,y,c){var n=128;
uart(n,14,3,x,y,c,0,0,0,0,0,0,0,24);
uart(n,14,3,x+8,y,c,0,0,0,0,0,48,56,63);
uart(n,14,3,x+16,y,c,7,7,7,7,31,255,255,255);
uart(n,14,3,x+24,y,c,0,64,192,224,240,240,252,255);
y=y+8;
uart(n,14,3,x,y,c,252,63,255,127,31,15,3,1);
uart(n,14,3,x+8,y,c,63,191,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,224,224,252,255,254,254,252,252);
y=y+8;
uart(n,14,3,x,y,c,1,1,0,0,0,0,0,0);
uart(n,14,3,x+8,y,c,255,255,255,255,63,63,127,127);
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,252,252,240,224,192,128,224,224);
y=y+8;
uart(n,14,3,x,y,c,0,0,0,0,0,0,1,1);
uart(n,14,3,x+8,y,c,127,127,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,240,224,224,240,192,224,224,224);
y=y+8;
uart(n,14,3,x,y,c,1,3,1,0,0,0,0,0);
uart(n,14,3,x+8,y,c,255,255,255,127,31,1,0,0);
uart(n,14,3,x+16,y,c,255,255,255,255,252,252,124,28);
uart(n,14,3,x+24,y,c,255,255,255,31,7,0,0,0);
uart(n,14,3,x+32,y,c,224,248,248,224,192,0,0,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(20,2,1);

目次に戻る