Sets the number of segments used to draw spline 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 spline curve. For example, calling curveDetail(5)
will use 5 segments to draw curves with the curve() function. By default,detail
is 20.
Note: curveDetail()
has no effect in 2D mode.
Examples
Syntax
curveDetail(resolution)
Parameters
resolution
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!