Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image = new IMG256Colours (100, 100, pal, 256);
- for (int i = 0; i < 4; i++) {
- int offset = i * (25 * 25);
- for (int x = 0; x < 25 * 25; x++) {
- byte colour = 0;
- if (i == 0)
- colour = 160;
- else if (i == 1)
- colour = 112;
- else if (i == 2)
- colour = 240;
- else if (i == 3)
- colour = 250;
- image [x + offset] = colour;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement