Tutorial Part 3: Primitives - nosir/obelisk.js GitHub Wiki

Primitives are basic geometric shapes such as cube, pyramid. Due to the pixel arrangement restriction, we only care about isometric primitives here.

Since now Pixas has a set of 5 primitive shapes, and more isometric primitives will be added into this engine in the future. These primitives are showed as follow:

obelisk

To create different primitives, we need to create different dimension and color instance.

Nothing special, you can check out these examples to find out how to do it:

Cube: http://jsfiddle.net/nosir/ygWEW/

Pyramid : http://jsfiddle.net/nosir/ZVURu/

Brick: http://jsfiddle.net/nosir/6MuVr/

SideX & SideY: http://jsfiddle.net/nosir/bLsew/