色一覧

PanCake の色がどんな感じで出力されるかを

確認するために一覧表示します。

 

実行すると PanCake の画面になり、

左上から右に 0、1、2、3、……

右下 15 まで 16 色が表示されます。

キーを押して IchigoLatte 画面へ戻り、

lash になります。

 

初期の PanCake は色を塗りつぶす事ができないため、

1行ずつ LINE で線画させています。

 

IchigoLatte 版では BASIC の HEX に該当する関数がないので、

バイナリーコマンドで LINE コマンドを実行しています。

IchigoLatte で変数の値を入れる場合は
バイナリーコマンドの方が楽になります。

 

//PanCake Color List

var c=0,x,y,z;

uart("\n");

video(0);
uart("PANCAKE VIDEO 01\n");
uart("PANCAKE CLEAR 00\n");

while(c<16){
 x=(c%4)*20;
 y=(c/4)*11;
 z=0;
 while(z<11){
  uart(128,8,1);
  uart(x);
  uart(y+z);
  uart(x+19);
  uart(y+z);
  uart(c);

  z=z+1;
 }

 c=c+1;
}

while(inkey()==0){}

uart("\n");
uart("PANCAKE VIDEO 00\n");
video(1);

MixJuice・MicJack ダウンロード lash>echo MJ GET 15lt.eu.org/color.js> uart;cat uart > .


STAMP1 版

//PanCake Color List STAMP1

var c=0,a,b,x,y;

uart("\n");
video(0);
uart("PANCAKE VIDEO 01\n");
uart("PANCAKE CLEAR 00\n");

while(c<16){
 a=(c%4)*20;
 b=(c/4)*11;
 x=0;
 while(x<24){
 y=0;
  while(y<16){
   uart(128,14,3);
   uart(x+a);
   uart(y+b);
   uart(c);
   uart(0xff,0xff,0xff,0xff);
   uart(0xff,0xff,0xff,0xff);
   y=y+8;
  }
  x=x+8;
 }
 c=c+1;
}

while(inkey()==0){}

uart("\n");
uart("PANCAKE VIDEO 00\n");
video(1);

MixJuice・MicJack ダウンロード lash>echo MJ GET 15lt.eu.org/colorst1.js> uart;cat uart > .