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:
number of segments to use. Defaults to 20.
This page is generated from the comments in src/core/shape/curves.js . Please feel free to edit it and submit a pull request!