(int color, byte[] reds, byte[] greens, byte[] blues)
| 207 | } |
| 208 | |
| 209 | int primaryColor(int color, byte[] reds, byte[] greens, byte[] blues) { |
| 210 | for (int i=0; i<256; i++) { |
| 211 | if ((color&4)!=0) |
| 212 | reds[i] = (byte)i; |
| 213 | if ((color&2)!=0) |
| 214 | greens[i] = (byte)i; |
| 215 | if ((color&1)!=0) |
| 216 | blues[i] = (byte)i; |
| 217 | } |
| 218 | return 256; |
| 219 | } |
| 220 | |
| 221 | int ice(byte[] reds, byte[] greens, byte[] blues) { |
| 222 | int[] r = {0,0,0,0,0,0,19,29,50,48,79,112,134,158,186,201,217,229,242,250,250,250,250,251,250,250,250,250,251,251,243,230}; |