3D, baby!

The Raku Programming Language Collect, Conserve and Remaster Project

3D, baby!

Originally published on 19 June 2009 by Carl Mäsak.

Last night I had one of those rapid prototyping sprints where everything goes just right. I wanted to scout the terrain for drawing a 3D Druid board using SVG.

The result is this.

board

Yup, Raku did that, with a little help from me.

It was very pleasing to see this image grow step by step. I literally started with a grey rectangle. Then I programmatically massaged the coordinates, adding projections, translations, scalings and rotations until I had what I wanted. Here’s the code.

I still feel two things are missing.

Anyway, I’ve been wanting to do this for a long time, and I’m glad that when I finally sat down to do it, not only was the result quite satisfactory, but also the process of getting there. It’s 2009, and I’m using Raku to rapid-prototype 3D board games. Cool!