[−][src]Static p5_sys::global::curveDetail
pub static curveDetail: CurveDetailInternalType
Sets the resolution at which curves display. The default value is 20 while the minimum value is 3.
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); curveDetail(5); } function draw() { background(200); curve(250, 600, 0, -30, 40, 0, 30, 30, 0, -250, 600, 0); }
Parameters
resolution
resolution of the curves