Reference+
Name
bezierDetail()
Description
Sets the resolution at which Bézier curves display. The default value is 20. This function is only useful when using the P2D or P3D renderer; the default (JAVA2D) renderer does not use this information.
Examples
// Move the mouse left and right to see the detail change void setup() { size(100, 100, P3D); noFill(); } void draw() { background(204); int d = int(map(mouseX, 0, 100, 1, 20)); bezierDetail(d); bezier(85, 20, 10, 10, 90, 90, 15, 80); }
Syntax
bezierDetail(detail)
Parameters
detail
(int)
resolution of the curves
Return
void
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.