-
Book Overview & Buying
-
Table Of Contents
Python 2.6 Graphics Cookbook
By :
The next thing to achieve is to create what appears to be one practically infinitely wide panorama. We extend the technique used in the previous example and make a background image that appears to be endless.

We have provided a single image that has been doctored so that the right-hand edge fits exactly onto the left-hand edge to create an endless and continuous image if they are placed side by side. The GIMP image manipulation program was used to do this editing. In a very condensed explanation, we do the following:
We copy a portion of the image that does not have too much detail vertically where we make the cut.
This is then pasted onto one end so that there is substantial overlap of the two images.
Then the top layer, containing the copy-and-pasted portion, has the eraser tool with a fuzzy edge applied so that we cannot see the transition from one image to the next.
Execute the following code.
# passing_cloudscape_1.py # >>>>>>...
Change the font size
Change margin width
Change background colour