Slide 124
Slide 124 text
Making Color Array
//14colors. Please cut & paste from color.txt
byte[,] colors = { { 255, 255, 255 },{ 18, 0, 230 },
{ 0, 152, 243 }, { 0, 241, 255 }, { 31, 195, 143 },
{ 68, 153, 0 }, { 150, 158, 0 }, { 233, 160, 0 },
{ 183, 104, 0 }, { 136, 32, 29 }, { 131, 7, 146 },
{ 127, 0, 228 }, { 79, 0, 229 }, { 0, 0, 0 } };
//index of color(colNo=0~13)
int colorNo = 0;
void Start()
{
int w = Screen.width;
int h = Screen.height;
int sx = (int)(h * 0.1);
h = (int)(h * 0.8);
/*Following code are omitted.*/
}
①copy&paste from colors.txt
②Write by yourself