@@ -2671,15 +2671,13 @@ function primitives3D(p5, fn){
2671
2671
* In WebGL mode, smooth shapes are drawn using many flat segments. Adding
2672
2672
* more flat segments makes shapes appear smoother.
2673
2673
*
2674
- * The parameter, `detail`, is the number of segments to use while drawing a
2675
- * spline curve. For example, calling `curveDetail(5)` will use 5 segments to
2676
- * draw curves with the <a href="#/p5/curve">curve()</a> function. By
2677
- * default,`detail` is 20.
2674
+ * The parameter, `detail`, is the density of segments to use while drawing a
2675
+ * spline curve.
2678
2676
*
2679
2677
* Note: `curveDetail()` has no effect in 2D mode.
2680
2678
*
2681
2679
* @method curveDetail
2682
- * @param {Number } resolution number of segments to use. Defaults to 20.
2680
+ * @param {Number } resolution number of segments to use. Default it 1/4
2683
2681
* @chainable
2684
2682
*
2685
2683
* @example
@@ -2694,12 +2692,12 @@ function primitives3D(p5, fn){
2694
2692
* noFill();
2695
2693
* strokeWeight(1);
2696
2694
* stroke(0);
2697
- * curve (5, 26, 73, 24, 73, 61, 15, 65);
2695
+ * spline (5, 26, 73, 24, 73, 61, 15, 65);
2698
2696
*
2699
2697
* // Draw red spline curves from the anchor points to the control points.
2700
2698
* stroke(255, 0, 0);
2701
- * curve (5, 26, 5, 26, 73, 24, 73, 61);
2702
- * curve (73, 24, 73, 61, 15, 65, 15, 65);
2699
+ * spline (5, 26, 5, 26, 73, 24, 73, 61);
2700
+ * spline (73, 24, 73, 61, 15, 65, 15, 65);
2703
2701
*
2704
2702
* // Draw the anchor points in black.
2705
2703
* strokeWeight(5);
@@ -2726,19 +2724,19 @@ function primitives3D(p5, fn){
2726
2724
*
2727
2725
* background(200);
2728
2726
*
2729
- * // Set the curveDetail() to 3.
2730
- * curveDetail(3 );
2727
+ * // Set the curveDetail() to 0.5
2728
+ * curveDetail(0.5 );
2731
2729
*
2732
2730
* // Draw a black spline curve.
2733
2731
* noFill();
2734
2732
* strokeWeight(1);
2735
2733
* stroke(0);
2736
- * curve (-45, -24, 0, 23, -26, 0, 23, 11, 0, -35, 15, 0);
2734
+ * spline (-45, -24, 0, 23, -26, 0, 23, 11, 0, -35, 15, 0);
2737
2735
*
2738
2736
* // Draw red spline curves from the anchor points to the control points.
2739
- * stroke (255, 0, 0);
2740
- * curve (-45, -24, 0, -45, -24, 0, 23, -26, 0, 23, 11, 0);
2741
- * curve (23, -26, 0, 23, 11, 0, -35, 15, 0, -35, 15, 0);
2737
+ * spline (255, 0, 0);
2738
+ * spline (-45, -24, 0, -45, -24, 0, 23, -26, 0, 23, 11, 0);
2739
+ * spline (23, -26, 0, 23, 11, 0, -35, 15, 0, -35, 15, 0);
2742
2740
*
2743
2741
* // Draw the anchor points in black.
2744
2742
* strokeWeight(5);
0 commit comments