RGBA16rainbow.h 13 KB
/*
 * Do edit this file.  It was generated
 * by "acorn" from the file "RGBA16dana.h".
 *
 *   Size: 1 x 1
 *   Number of channels: 3
 *   Number of bits per texel: 16 (G_IM_SIZ_16b)
 *   Format of texel: G_IM_FMT_RGBA
 *
 * Example usage:
 *
 *   gsSPTexture (128, 128, G_TX_RENDERTILE, 1),
 *   gsDPPipeSync (),
 *   gsDPSetCombineMode (G_CC_MODULATERGBA, G_CC_MODULATERGBA),
 *   gsDPSetTexturePersp (G_TP_PERSP),
 *   gsDPSetTextureDetail (G_TD_CLAMP),
 *   gsDPSetTextureLOD (G_TL_TILE),
 *   gsDPSetTextureLUT (G_TT_NONE),
 *   gsDPLoadTextureBlock (RGBA16dana, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32,
 *     G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR,
 *     G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD),
 */

#if 0	/* Image preview */
	+-+
	|*| 	one texel
	+-+
#endif

unsigned short rainbow16[] = {
	0x8981, /* brown */
	0xf801, /* red */
	0xfc81, /* orange */
	0xffc1, /* yellow */
	0x07c1, /* green */
	0x003f, /* blue */
	0xf83f, /* magenta */
	0x8421, /* grey */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
	0x0400,	/* green */
};
/* 0xdcdd  = skin color */
/* 0xf801  = red        */
/* 0x07c1  = green      */
/* 0x003f  = blue       */

/* 4 bit color lookup table */
static char rain_tlutRGBA[] = {
        0x89, 0x81, 0x89, 0x81, 0x89, 0x81, 0x89, 0x81, /* indx 0 */
        0xf8, 0x01, 0xf8, 0x01, 0xf8, 0x01, 0xf8, 0x01, /* indx 1 */
        0xfc, 0x81, 0xfc, 0x81, 0xfc, 0x81, 0xfc, 0x81, /* indx 2 */
        0xff, 0xc1, 0xff, 0xc1, 0xff, 0xc1, 0xff, 0xc1, /* indx 3 */
        0x07, 0xc1, 0x07, 0xc1, 0x07, 0xc1, 0x07, 0xc1, /* indx 4 */
        0x00, 0x3f, 0x00, 0x3f, 0x00, 0x3f, 0x00, 0x3f, /* indx 5 */
        0xf8, 0x3f, 0xf8, 0x3f, 0xf8, 0x3f, 0xf8, 0x3f, /* indx 6 */
        0x84, 0x21, 0x84, 0x21, 0x84, 0x21, 0x84, 0x21, /* indx 7 */
        0x8c, 0x63, 0x8c, 0x63, 0x8c, 0x63, 0x83, 0x63, /* indx 8 */
        0x9c, 0xe7, 0x9c, 0xe7, 0x9c, 0xe7, 0x9c, 0xe7, /* indx 9 */
        0xad, 0x6b, 0xad, 0x6b, 0xad, 0x6b, 0xad, 0x6b, /* indx a */
        0xbd, 0xef, 0xbd, 0xef, 0xbd, 0xef, 0xbd, 0xef, /* indx b */
        0xce, 0x73, 0xce, 0x73, 0xce, 0x73, 0xce, 0x73, /* indx c */
        0xde, 0xf7, 0xde, 0xf7, 0xde, 0xf7, 0xde, 0xf7, /* indx d */
        0xef, 0x7b, 0xef, 0x7b, 0xef, 0x7b, 0xef, 0x7b, /* indx e */
        0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* indx f */
};

unsigned char rainbow4[] = {
	0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};

unsigned char rainbow8[] = {
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
	0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};

unsigned int rainbow32[] = {
	0x833100ff, /* brown */
	0xff0000ff, /* red */
	0xf39200ff, /* orange */
	0xffff00ff, /* yellow */
	0x00ff00ff, /* green */
	0x0000ffff, /* blue */
	0xff00ffff, /* magenta */
	0x828282ff, /* grey */
	0x00000000, /* black */
	0x00000000, /* black */
	0x00000000, /* black */
	0x00000000, /* black */
	0x00000000, /* black */
	0x00000000, /* black */
	0x00000000, /* black */
	0x00000000, /* black */
};
unsigned short roundrain16[] = {
	0x003f, 0x003f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0x003f, 0x003f, 
	0x003f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0x003f, 
	0xf83f, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xf83f, 
	0xf83f, 0xffff, 0x8421, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 
	0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0x003f, 0x003f, 0x003f, 0x003f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 
	0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x003f, 0x07c1, 0x07c1, 0x07c1, 0x07c1, 0x003f, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 
	0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0x07c1, 0xffc1, 0xffc1, 0xffc1, 0xffc1, 0x07c1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001, 0x8421, 
	0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xfc81, 0xffc1, 0xffc1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001,
0x8421,
	0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xf801, 0xf801, 0xfc81, 0xffc1, 0xffc1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001, 
	0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xfc81, 0xf801, 0x003f, 0x003f, 0xf801, 0xfc81, 0xffc1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001, 
	0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xfc81, 0xf801, 0x003f, 0x003f, 0xf801, 0xfc81, 0xffc1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001,
	0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xf801, 0xf801, 0xfc81, 0xffc1, 0xffc1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001,
	0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xfc81, 0xffc1, 0xffc1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001, 0x8421,
	0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0x07c1, 0xffc1, 0xffc1, 0xffc1, 0xffc1, 0x07c1, 0x07c1, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001, 0x8421,
	0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x003f, 0x07c1, 0x07c1, 0x07c1, 0x07c1, 0x003f, 0x003f, 0xf83f, 0xffff, 0x8421, 0x0001, 0x8421, 0xffff,
	0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0x003f, 0x003f, 0x003f, 0x003f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x0001, 0x8421, 0xffff,
	0xf83f, 0xffff, 0x8421, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x8421, 0xffff, 0xf83f,
	0xf83f, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xf83f,
	0x003f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0x003f,
	0x003f, 0x003f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0x003f, 0x003f,

};
unsigned short round13rain16[] = {
	0x003f, 0x003f, 0xf83f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x0001, 0x0001, 0x8421,
	0x003f, 0xf83f, 0xffff, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0x8421, 0x8421, 0x0001,
	0xf83f, 0xffff, 0x8421, 0x8421, 0x0001, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xffff, 0xffff, 0x8421,
	0xf83f, 0xffff, 0x8421, 0x0001, 0x8421, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0xf83f, 0xf83f, 0xffff,
	0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 0xffff, 0xf83f, 0xf83f, 0x003f, 0x003f, 0x003f, 0x003f, 0xf83f,
	0xffff, 0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x003f, 0x07c1, 0x07c1, 0x07c1, 0x07c1, 0x003f,
	0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0x07c1, 0xffc1, 0xffc1, 0xffc1, 0xffc1, 0x07c1,
	0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xfc81, 0xffc1, 0xffc1,
	0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xf801, 0xf801, 0xfc81, 0xffc1,
	0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xfc81, 0xf801, 0x003f, 0x003f, 0xf801, 0xfc81,
	0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xfc81, 0xf801, 0x003f, 0x003f, 0xf801, 0xfc81,
	0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xf801, 0xf801, 0xfc81, 0xffc1,
	0x8421, 0x0001, 0x8421, 0xffff, 0xf83f, 0x003f, 0x07c1, 0xffc1, 0xffc1, 0xfc81, 0xfc81, 0xffc1, 0xffc1,
0,0,0,	/* pad for alignment */
};
unsigned short black16[] = {
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
};
unsigned char round13rain8[] = {

	0x06, 0x06, 0x07, 0x07, 0x09, 0x09, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08,
	0x06, 0x07, 0x09, 0x09, 0x08, 0x08, 0x00, 0x00, 0x08, 0x08, 0x08, 0x08, 0x00,
	0x07, 0x09, 0x08, 0x08, 0x00, 0x00, 0x08, 0x08, 0x09, 0x09, 0x09, 0x09, 0x08,
	0x07, 0x09, 0x08, 0x00, 0x08, 0x08, 0x09, 0x09, 0x07, 0x07, 0x07, 0x07, 0x09,
	0x09, 0x08, 0x00, 0x08, 0x09, 0x09, 0x07, 0x07, 0x06, 0x06, 0x06, 0x06, 0x07,
	0x09, 0x08, 0x00, 0x08, 0x09, 0x07, 0x06, 0x06, 0x05, 0x05, 0x05, 0x05, 0x06,
	0x08, 0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x05, 0x04, 0x04, 0x04, 0x04, 0x05,
	0x08, 0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x04, 0x04, 0x03, 0x03, 0x04, 0x04,
	0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x04, 0x04, 0x03, 0x02, 0x02, 0x03, 0x04,
	0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x06, 0x06, 0x02, 0x03,
	0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x06, 0x06, 0x02, 0x03,
	0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x04, 0x04, 0x03, 0x02, 0x02, 0x03, 0x04,
	0x08, 0x00, 0x08, 0x09, 0x07, 0x06, 0x05, 0x04, 0x04, 0x03, 0x03, 0x04, 0x04,
0,0,0,0,0,0,0,
};
unsigned char round13rain4[] = {

	0x66, 0x77, 0x99, 0x88, 0x00, 0x00, 0x80,
	0x67, 0x99, 0x88, 0x00, 0x88, 0x88, 0x00,
	0x79, 0x88, 0x00, 0x88, 0x99, 0x99, 0x80,
	0x79, 0x80, 0x88, 0x99, 0x77, 0x77, 0x90,
	0x98, 0x08, 0x99, 0x77, 0x66, 0x66, 0x70,
	0x98, 0x08, 0x97, 0x66, 0x55, 0x55, 0x60,
	0x80, 0x89, 0x76, 0x55, 0x44, 0x44, 0x50,
	0x80, 0x89, 0x76, 0x54, 0x43, 0x34, 0x40,
	0x08, 0x97, 0x65, 0x44, 0x32, 0x23, 0x40,
	0x08, 0x97, 0x65, 0x43, 0x26, 0x62, 0x30,
	0x08, 0x97, 0x65, 0x43, 0x26, 0x62, 0x30,
	0x08, 0x97, 0x65, 0x44, 0x32, 0x23, 0x40,
	0x80, 0x89, 0x76, 0x54, 0x43, 0x34, 0x40,
0,0,0,0,0,
};