ashenfad / stars

A demo star map using Clojurescript + canvas + affine transforms

Home Page:http://ashenfad.github.com/stars/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Star Map in ClojureScript

This project uses ClojureScript, canvas, and affine transforms to build a star map for a perpetually half-finished game. The star map supports panning and zooming (click and drag to pan, scroll in or out to zoom).

The notable bits of the codebase are the canvas namespace and the affine transform namespace. The implementation of the 2d star map was borrowed from an earlier incarnation I once did in Java 2D. I think there's an opportunity for a nice ClojureScript/Clojure library that would accept the same 2D drawing and transform operations for either a browser canvas element or a Java Graphics object.

Anyway - to see the map in action: http://ashenfad.github.com/stars/

About

A demo star map using Clojurescript + canvas + affine transforms

http://ashenfad.github.com/stars/


Languages

Language:JavaScript 96.7%Language:Clojure 3.3%