@@ -1638,9 +1638,15 @@ function customShapes(p5, fn) {
1638
1638
* </code>
1639
1639
* </div>
1640
1640
*/
1641
+ /**
1642
+ * @method bezierOrder
1643
+ * @returns {Number } The current Bézier order.
1644
+ */
1641
1645
fn . bezierOrder = function ( order ) {
1642
1646
return this . _renderer . bezierOrder ( order ) ;
1643
1647
} ;
1648
+
1649
+
1644
1650
/**
1645
1651
* Adds a spline curve segment to a custom shape.
1646
1652
*
@@ -2089,29 +2095,40 @@ function customShapes(p5, fn) {
2089
2095
* // Draw the curve.
2090
2096
* noFill();
2091
2097
* beginShape();
2092
- * curveVertex (10, 26);
2093
- * curveVertex (10, 26);
2094
- * curveVertex (83, 24);
2095
- * curveVertex (83, 61);
2096
- * curveVertex (25, 65);
2097
- * curveVertex (25, 65);
2098
+ * splineVertex (10, 26);
2099
+ * splineVertex (10, 26);
2100
+ * splineVertex (83, 24);
2101
+ * splineVertex (83, 61);
2102
+ * splineVertex (25, 65);
2103
+ * splineVertex (25, 65);
2098
2104
* endShape();
2099
2105
* }
2100
2106
* </code>
2101
2107
* </div>
2102
2108
*/
2109
+ /**
2110
+ * @method splineProperty
2111
+ * @param {String } property
2112
+ * @returns value The current value for the given property.
2113
+ */
2103
2114
fn . splineProperty = function ( property , value ) {
2104
2115
return this . _renderer . splineProperty ( property , value ) ;
2105
2116
} ;
2106
2117
2107
2118
/**
2119
+ * Get or set multiple spline properties at once.
2120
+ *
2108
2121
* Similar to <a href="#/p5/splineProperty">splineProperty()</a>:
2109
2122
* `splineProperty('tightness', t)` is the same as
2110
2123
* `splineProperties({'tightness': t})`
2111
2124
*
2112
2125
* @method splineProperties
2113
2126
* @param {Object } properties An object containing key-value pairs to set.
2114
2127
*/
2128
+ /**
2129
+ * @method splineProperties
2130
+ * @returns {Object } The current spline properties.
2131
+ */
2115
2132
fn . splineProperties = function ( values ) {
2116
2133
return this . _renderer . splineProperties ( values ) ;
2117
2134
} ;
0 commit comments