PostScript is a page description language and programming language developed by Adobe Systems.
Here you can find some examples of PostScript programming. All you need is a PostScript interpreter, like Ghostscript, and a software that lets
you see the results on the screen, like GSview (similar programs exist for operating systems different from Microsoft Windows).
In order to compile a file
foo.c on a Linux box you must type
gcc -o foo foo.c. If the compilation is successful, you can run the program by typing
- Sudoku's solver (new version). This program can solve a classic Sudoku.
In this new version it is possible to find all solutions of a sudoku (in the old version the program will stop after the first solution found). Moreover, it is possible to save the solutions in a text file, even in TeX format (if you prefer, the old version is still available).
Once you have compiled the program you can test it with the following data file, or with this one.
If you are using Microsoft Windows and you don't have a C compiler, you can try this compiled version (it is an executable file).
These programs use the Qt libraries, developed by Trolltech. The version used is Qt 3.3.4. To compile one of
these programs on a Linux box (with the Qt libraries installed), you must decompress the zip file and save its contents on some directory. Then, from this location, just type the following
- Peano's Curve. This program shows the first iterations of the construction of a continuous curve that fills a square (knows as Peano's curve). The image can be saved as a PostScript file.
- Steganography. With this program you can hide any file inside an image [Steganography], without
any perceptible modification of the original image (the only supported image file format is PNG). Warning: the degree of
secrecy offered by this program is close to zero! The presence of a file hidden inside an image can be very easily detected by a suitable analysis of the image.
- Mandel. This program let's you visualize and explore the Mandelbrot set (the source code is not
very "clean" and can be greatly improved, especially for what concerns the graphical interface and the coloring algorithm.