Alpha-py-8 : Which Image?
Key concept
Our example
Run the program Alpha-py-8-eggs.py in your shell.

Look at the program Alpha-py-8-eggs.py in your text editor.
Notice how:
- .gif images have replaced the drawn pictures.
Be creative
Make .gif images of your pictures in your image editor.
Modify your program to use your .gif images.
Images
To convert your existing drawn pictures into .gif images:
First copy one of your drawn pictures:
- Run your existing program.
- Take a screenshot of your graphics window (in GIMP, select File/Acquire/Screenshot).
- Crop the screenshot to the size of the drawing.
Then make it transparent:
- Make a new transparent layer (in GIMP, select Dialogs/Layers, then Layer/New Layer).
- On the original (background) layer, select the drawing by colour/s.
- Copy the selection/s to the new layer.
- Touch up anything missing, eg. where the drawing was the same colour as the graphics window.
- Make the original (background) layer invisible.
Finally, make your image a .gif image:
- Save the image as a .gif
- You may be prompted to flatten and export the image.
- (The "bricks" we are using for the Alpha-py tutorial only work with images that are .gif)
To display the image:
- Use image("filename.gif", x, y)
- The image will display relative to the (x,y) co-ordinates at the centre of the image.