/jscube

Draw 3D objects pixel by pixel on 2D HTML5 canvas

Primary LanguageCoffeeScript

JSCube

Copyright (c) 2013 Linus Yang

Introduction

A simple demo to draw 3D objects pixel by pixel on 2D HTML5 canvas.

Features:

  • Only ultilize createImageData and putImageData API.
  • With simple anti-aliasing algorithm.
  • Support both mouse events and touch screen with multi-touch guestures.
  • Retina (HiDPI) display is supported.

Inspired by Pre3d project, totally re-written in CoffeeScript. Web page is powered by Bootstrap.

Please see the online demo: linusyang.com/jscube.

Build

Node.js is required for building from source.

git clone https://github.com/linusyang/jscube.git
cd jscube
npm install
npm run-script build

License

Licensed under GPLv3.