-
Notifications
You must be signed in to change notification settings - Fork 100
Tutorial Part 3: Primitives
Max Huang edited this page Mar 22, 2014
·
2 revisions
- Tutorial Part 1: To build the first cube
- Tutorial Part 2: Coordinate system
- Tutorial Part 3: Primitives
- Tutorial Part 4: Color
- Tutorial Part 5: Dimension
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:
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:
Pyramid : http://jsfiddle.net/nosir/ZVURu/
SideX & SideY: http://jsfiddle.net/nosir/bLsew/