Point distance visualiser (Python)

A tool/toy that generates a random set of points in 3D space and draws links between them, with colour depending on direction and brightness depending on proximity. Can be rotated in 3D. Wrote this for kicks in an Algorithms & Analysis class after the lecturer started talking about graph link weights. Requires PyGame. Runs in Python 2.7 or 3.
Source: closestpoints.py
(Requires vec2.py)
Continue reading

Stereographic image converter (Python)

A simple tool that converts images with a rectilinear projection (ordinary photos, game screenshots etc) to a stereographic (angle-preserving) projection, and displays the result. My first attempt at an image manipulation tool, now a guinea pig for displaying code on a website. Requires the scipy and matplotlib packages. Takes two arguments: source image filename and source image horizontal field-of-view in degrees.
Source: stereo_img.py

Continue reading