Random Etc. Notes to self. Work, play, and the rest.

1D textures for quick contours

You can generate simple contour maps from 1-dimensional textures. I think it's a trick I picked up from one of the editions of the OpenGL Red Book, but it works with Processing's 3D and OpenGL renderers too.

This example uses the Arcball and Triangulate libraries I put together for Processing Hacks, and I'll document it fully there in the next few days. In the meantime, here's the applet for safe keeping.


MySociety Travel Time maps of the UK AI library for Processing