[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[WitchTech 00253] Re: 重ね合わせ時のパレット



$B$3$s$K$A$O!"(BCDR/TK$B$G$9!#(B

<398F8F3B20D.EB2AYUN@mail1.hopemoon.com>$B$N5-;v$K$*$$$F(B
yun@cup.com$B$5$s$O=q$-$^$7$?!#(B

>>  Screen1$B$K!"%Q%l%C%H(B1$B$G#4?'$r;H$C$F%-%c%i%/%?$rI=<($7$^$9!#(B
>>  $B<!$KF1$8>l=j$N(BScreen2$B$K!"%Q%l%C%H(B4$B$G#3?'(B($B#1?'$OF)2a?'$J$N$G>J$/(B)
>> $B$r;H$C$F%-%c%i%/%?$rI=<($7$^$9!#(B

$B$A$g$C$H;n$7$F$_$^$7$?!#(B
WonderSwan$B$N1U>=$@$H!"(B7$B3,D4$r8+$o$1$k$N$OFq$7$$$G$9$M!#(B
$B$?$@!"(B4$B3,D4$h$jB?$/=P$F$$$k$h$&$K$O8+$($^$7$?!#(B

# $B%3%s%H%i%9%H$ND4@0%@%$%"%k$rF0$+$7$F$_$k$H$o$+$k!J>P!K(B

$B9u$K6a$$$[$&$O!"$[$H$s$I8+$o$1$,$D$+$J$$$G$9$M!#(B
$B%Q%l%C%H$r$I$&<h$k$+$,%+%.$@$H;W$$$^$9!#(B

$B:8H>J,$K(B7$B3,D4!"1&H>J,$K(B4$B3,D4$NBS$rI=<($9$k%=!<%9$G$9!#(B
-------------------------------------------------------------
#include<stdlib.h>
#include<sys/bios.h>

int main( int ac, char **av )
{
	int i;

	static unsigned font[] = {
	0x0000,0x00ff,0xff00,0xffff,0x0000,0x0000,0x0000,0x0000, /* back */
	0x0000,0x0000,0x0000,0x0000,0x00ff,0xff00,0xffff,0xffff, /* front */
	0x0000,0x0000,0x00ff,0x00ff,0xff00,0xff00,0xffff,0xffff, /* 4 colors */
	};

	display_control(DCM_SCR1|DCM_SCR2);

	lcd_set_color(0x69cf,0x0124);

	palette_set_color(0,0x4321);	/* for back */
	palette_set_color(4,0x7650);	/* for front */
	palette_set_color(1,0x7531);	/* for 4 colors */

	font_set_colordata(0,3,(void far*)font);

	for( i = 0 ; i < 18 ; i+=2 ){
	    /* 4+3 = 7 colors */
		screen_fill_char(SCREEN1,0,i,14,1,0<<9|0);
		screen_fill_char(SCREEN2,0,i,14,1,4<<9|1);

		screen_fill_char(SCREEN1,0,i+1,14,1,CFM_FLIP_V|0<<9|0);
		screen_fill_char(SCREEN2,0,i+1,14,1,CFM_FLIP_V|4<<9|1);

	    /* 4 colors */
		screen_fill_char(SCREEN2,14,i,14,1,1<<9|2);
		screen_fill_char(SCREEN2,14,i+1,14,1,CFM_FLIP_V|1<<9|2);
	}
	key_wait();
	return 0;
}
----------------------------------------------------------------------------
/*
** $B9)F#(B $BC#Li(B (Tatsuya Kudoh)	mailto:cdr@cosmonet.org
**				http://www.tnlab.ice.uec.ac.jp/~cdr/
*/


ML Archives