Download Latest Version Bower and Component support source code.zip (24.1 kB)
Email in envelope

Get an email when there's a new version of isomerjs

Home / v0.2.1
Name Modified Size InfoDownloads / Week
Parent folder
isomer.min.js 2014-05-04 8.6 kB
README.md 2014-05-04 1.5 kB
v0.2.1 source code.tar.gz 2014-05-04 10.0 kB
v0.2.1 source code.zip 2014-05-04 14.0 kB
Totals: 4 Items   34.1 kB 0

Isomer is now built with Browserify!

Browserify allows you to use traditional require() statements in your code, which is then bundled. Development is now significantly easier and cleaner.

There are now two gulp tasks, build & release.

  • gulp build bundles the project using Browserify and produces build/isomer.js
  • gulp release minifies the build to build/isomer.min.js

The test page references isomer.js, and includes a livereload script to be used with beefy.

This means that you will need to rebuild the project with every change, but you can have beefy do this for you, as well as reload the testing page automatically.

$ npm install -g beefy
$ beefy index.js:build/isomer.js --live
listening on http://localhost:9966/

Navigate to http://localhost:9966/test/ to check it out.

This pattern also makes it easy for Isomer to work with node-canvas for generating isometric graphics on the command line.

:::javascript
var Canvas = require('canvas');
var canvas = new Canvas(400, 400);
var Isomer = require('isomer');   // npm install isomer
var fs = require('fs');
var out = fs.createWriteStream('output.png');

var iso = new Isomer(canvas);
iso.add(Isomer.Shape.Prism(Isomer.Point.ORIGIN));

canvas.pngStream().pipe(out);

With <3, @jdan

Source: README.md, updated 2014-05-04