Bitmap Activity 2

Below is an example of how to create a 16 pixel by 16 pixel bitmap...

Step 1: Draw the picture you want to turn into a bitmap.

Step 2: Copy the outline of the drawing onto four 8 by 8 grids.

Step 3: Work out which pixels you will colour in.

Step 4: Work out the decimal value for each line of the grids.

Step 5: Write a program that will change the character map of 4 ASCII characters using the decimal values you worked out in Step 4.

10 Mode 4
20 VDU 23, 65, 0,1,3,6,12,25,63,255
30 VDU 23, 66, 0,248,182,134,255,255,255,255
40 VDU 23, 67, 255,113,48,16,1,15,3,0
50 VDU 23, 68, 255,199,130,130,128,224,128,0
60 PRINT
70 PRINT " AB"
80 PRINT " CD"
90 PRINT

Step 6: RUN the program to see your bitmap image.