|
|
Quick Reference:
Aa processing-style reference manual is in the works. This page is by
no means a proper reference guide, so your best bet is to check out the
examples page for more details.
There are only four new basic commands to learn :
1) BSpace() - the object's constructor - see basic
example
2) setAxis(x,y) , setAxis(x,y,z), getAxisX() / Y/ Z - see basic
example
3) setPivot(x,y) , setPivot(x,y,z), getPivotX() / Y/ Z - see
setPivot() example
4) nestIn(Bspace object) - see nesting
example
You can use the following commands just as you used them before:
- Shapes / Image:
- rect(), ellipse(), line(), point(), curve(), bezier(),
box(), sphere()
- beginShape(), endShape(), vertex(), curveVertex(),
bezierVertex()
- Image()
- ellipseMode(), rectMode()
* text() is not supported in this version.
- Transformations:
- rotateX/Y/Z(), translate(), scale()
- objectX/Y/Z()
- screenX/Y/Z() (partially tested)
- Optimization:
- smooth() / noSmooth()
Also, there are some more features for tweaking to BSpace:
axisMode(BSpace.WORLD)
axisMode(BSpace.OBJECT) --- default
Description: use axisMode() to switch between OBJECT and WORLD coordinate
systems when using axis commands: setAxis(), getAxisX(), getAxisY()
In addition, you may also override the axisMode like so:
setAxis(BSpace.WORLD,40,40);
getAxisX(BSpace.OBJECT);
etc.
|