_plane = function _plane() {
                var u, v, p;
                for (var i = 0; i <= this.detailY; i++) {
                  v = i / this.detailY;
                  for (var j = 0; j <= this.detailX; j++) {
                    u = j / this.detailX;
                    p = new _main.default.Vector(u - 0.5, v - 0.5, 0);
                    this.vertices.push(p);
                    this.uvs.push(u, v);
                  }
                }
              }
Draw a plane with given a width and height
@method plane
@param  {Number} [width]    width of the plane
@param  {Number} [height]   height of the plane
@param  {Integer} [detailX]  Optional number of triangle
                            subdivisions in x-dimension
@param {Integer} [detailY]   Optional number of triangle
                            subdivisions in y-dimension
@chainable
@example
<div>
<code>
// draw a plane
// with width 50 and height 50
function setup() {
  createCanvas(100, 100, WEBGL);
}

function draw() {
  background(200);
  plane(50, 50);
}
</code>
</div>

@alt
Nothing displayed on canvas
Rotating interior view of a box with sides that change color.
3d red and green gradient.
Rotating interior view of a cylinder with sides that change color.
Rotating view of a cylinder with sides that change color.
3d red and green gradient.
rotating view of a multi-colored cylinder with concave sides.