PostScript

A small collection of examples for learning programming.

bezier.ps

Drawing parametrized two-dimensional curves using cubic splines.

color.ps

Filling the page with squares of random colors.

cosinus_winkelmesser.ps

A goniometer for measuring cosine similarity. A joke that was laser-printed on transparency and attached to the doctoral cap for Dominik Benz.

ean.ps

Drawing barcodes for European Article Numbers.

gleiche_breite.ps

Automatically scaling words to the same printed width.

macmahon.ps

Visualizing the 30 MacMahon Cubes.

personalausweis.ps

Explaining the document number for old German identity cards.

planzeiger.ps

A reference card for measuring distances and angles on printed maps. Works well laser-printed on transparency.

random.ps

Initializing the pseudo-random number generator with some device entropy.

schneeflocke.ps

The Koch snowflake – a recursively drawn fractal curve.

spirale.ps

A very first approach to draw a mesmerizing spiral.

triangle.ps

Really just a triangle. Almost the simplest imaginable program.

voronoi.ps

Computing Voronoi diagrams using Fortune’s algorithm. The page shows randomly drawn points together with their computed Voronoi regions.


All code is licensed with GNU General Public License Version 3.