@@ -832,7 +832,7 @@ class Shape {
832
832
splineProperty ( key , value ) {
833
833
this . _splineProperties [ key ] = value ;
834
834
}
835
-
835
+
836
836
splineProperties ( values ) {
837
837
if ( values ) {
838
838
for ( const key in values ) {
@@ -2371,7 +2371,7 @@ function customShapes(p5, fn) {
2371
2371
* vertex(30, 70);
2372
2372
* vertex(70, 70);
2373
2373
* vertex(70, 30);
2374
- * endContour();
2374
+ * endContour(CLOSE );
2375
2375
*
2376
2376
* // Stop drawing the shape.
2377
2377
* endShape(CLOSE);
@@ -2412,7 +2412,7 @@ function customShapes(p5, fn) {
2412
2412
* vertex(-20, 20);
2413
2413
* vertex(20, 20);
2414
2414
* vertex(20, -20);
2415
- * endContour();
2415
+ * endContour(CLOSE );
2416
2416
*
2417
2417
* // Stop drawing the shape.
2418
2418
* endShape(CLOSE);
@@ -2425,7 +2425,7 @@ function customShapes(p5, fn) {
2425
2425
} ;
2426
2426
2427
2427
/**
2428
- * Stops creating a hole within a flat shape.
2428
+ * Stops creating a hole within a flat shape.
2429
2429
*
2430
2430
* The <a href="#/p5/beginContour">beginContour()</a> and `endContour()`
2431
2431
* functions allow for creating negative space within custom shapes that are
@@ -2435,6 +2435,10 @@ function customShapes(p5, fn) {
2435
2435
* called between <a href="#/p5/beginShape">beginShape()</a> and
2436
2436
* <a href="#/p5/endShape">endShape()</a>.
2437
2437
*
2438
+ * By default,
2439
+ * the controur has an `OPEN` end, and to close it,
2440
+ * call `endContour(CLOSE)`.
2441
+ *
2438
2442
* Transformations such as <a href="#/p5/translate">translate()</a>,
2439
2443
* <a href="#/p5/rotate">rotate()</a>, and <a href="#/p5/scale">scale()</a>
2440
2444
* don't work between <a href="#/p5/beginContour">beginContour()</a> and
@@ -2448,7 +2452,7 @@ function customShapes(p5, fn) {
2448
2452
* counter-clockwise order.
2449
2453
*
2450
2454
* @method endContour
2451
- * @param {OPEN|CLOSE } [mode=OPEN]
2455
+ * @param {OPEN|CLOSE } [mode=OPEN] By default, the value is OPEN
2452
2456
*
2453
2457
* @example
2454
2458
* <div>
@@ -2473,7 +2477,7 @@ function customShapes(p5, fn) {
2473
2477
* vertex(30, 70);
2474
2478
* vertex(70, 70);
2475
2479
* vertex(70, 30);
2476
- * endContour();
2480
+ * endContour(CLOSE );
2477
2481
*
2478
2482
* // Stop drawing the shape.
2479
2483
* endShape(CLOSE);
@@ -2514,7 +2518,7 @@ function customShapes(p5, fn) {
2514
2518
* vertex(-20, 20);
2515
2519
* vertex(20, 20);
2516
2520
* vertex(20, -20);
2517
- * endContour();
2521
+ * endContour(CLOSE );
2518
2522
*
2519
2523
* // Stop drawing the shape.
2520
2524
* endShape(CLOSE);
0 commit comments