src/jax/builtin/meshes/quad.js in jax-0.0.0.5 vs src/jax/builtin/meshes/quad.js in jax-0.0.0.6
- old
+ new
@@ -3,13 +3,19 @@
*
* A simple square or rectangle. You can adjust its width and height, and that's about it.
*
* This mesh is generally used for testing purposes, or for simple, textured objects like smoke particles.
*
+ * Options:
+ *
+ * * width : the width of this quad in units along the X axis. Defaults to +size+.
+ * * height : the height of this quad in units along the Y axis. Defaults to +size+.
+ * * size : a value to use for both width and height. Defaults to 1.0.
+ *
* Examples:
*
* var quad = new Jax.Mesh.Quad({width: 2, height: 1});
- * var quad = new Jax.Mesh.Quad(1.5);
+ * var quad = new Jax.Mesh.Quad({size:1.5});
*
**/
Jax.Mesh.Quad = (function() {
return Jax.Class.create(Jax.Mesh, {
initialize: function($super, options) {