Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 803 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 803 Bytes

Obelisk.js in Node.js

This example does the following:

  • Loads a file named figure that contains a 3d figure represented as layers: Each layer is separated by the --- string and the cells of the layer may contain a letter that represents its color. If no letter is present nothing is drawn in that place.
  • Draws that figure inside a node-canvas.
  • If the script is run inside iTerm2 draws the image in the console. If not it's saved in a file named figure.png

Take a look by yourself, an image is worth a thousand words!

https://cloud.githubusercontent.com/assets/419703/2586880/6caee458-ba0d-11e3-9c87-e6013a7d0175.gif