plane

Static plane 

Source
pub static plane: PlaneInternalType
Expand description

Draw a plane with given a width and height

Examples

// draw a plane
// with width 50 and height 50
function setup() {
  createCanvas(100, 100, WEBGL);
}

function draw() {
  background(200);
  plane(50, 50);
}

Parameters

width? width of the plane

height? height of the plane

detailX? Optional number of triangle subdivisions in x-dimension

detailY? Optional number of triangle subdivisions in y-dimension