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 density of segments to use while drawing a spline curve.
Note: curveDetail()
has no effect in 2D mode.
Examples
Syntax
curveDetail(resolution)
Parameters
resolution
Number: number of segments to use. Default is 1/4
Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/3d_primitives.js and open a pull request!