Sets the number of segments used to draw Bézier curves in WebGL mode.
In WebGL mode, smooth shapes are drawn using many flat segments. Adding more flat segments makes shapes appear smoother.
The parameter, detail
, is the number of segments to use while drawing a Bézier curve. For example, calling bezierDetail(5)
will use 5 segments to draw curves with the bezier() function. By default,detail
is 20.
Note: bezierDetail()
has no effect in 2D mode.
Examples
Syntax
bezierDetail(detail)
Parameters
detail
number of segments to use. Defaults to 20.
Notice any errors or typos? Please let us know. Please feel free to edit src/core/shape/curves.js and open a pull request!