Static p5_sys::global::bezierDetail[][src]

pub static bezierDetail: BezierDetailInternalType
Expand description

Sets the resolution at which Bezier's curve is displayed. The default value is 20.

Note, This function is only useful when using the WEBGL renderer as the default canvas renderer does not use this information.

Examples

function setup() {
  createCanvas(100, 100, WEBGL);
  noFill();
  bezierDetail(5);
}

function draw() {
  background(200);
  bezier(-40, -40, 0,
          90, -40, 0,
         -90,  40, 0,
          40,  40, 0);
}

Parameters

detail resolution of the curves