Write a progam that inputs 8 integers and colours Bitmap Display with size 128×128 dots based on 0x10010000 like this:
Numbers here indicate color number, you do not need to draw them!
Please note the corners: , , , and the center: . To see this better you can scale Bitmap Display «size in pixels» by 4 (this do not affects program).
- EJudge cannot inrterract with Bitmap Display, so to pass test the program should dump all videomemory
16711680 65280 255 16776960 16711935 65535 16777215 8947848
Hint: numbers on picture are not random, a number is a line of three bits:
- x⩾Width/2 (0 bit)
- y⩾Height/2 (1 bit)
x⩾y xor x+y<(W+H)/2 (3 bit)
0x00ff0000 0x00ff0000 0x00ff0000 0x00ff0000 … (many lines) (how many ☺?) … 0x00ffff00 0x00ffff00 0x00ffff00 0x00888888
See also full output in attachment.