Skip to content

Commit 2f68572

Browse files
authored
minor-fixing in shape docs
1 parent b2b561a commit 2f68572

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/shape/custom_shapes.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,7 @@ function customShapes(p5, fn) {
19391939
*
19401940
*
19411941
* ```js
1942-
* splineProperty('ends', INCLUDE);
1942+
* splineProperty('ends', EXCLUDE);
19431943
* spline(25, 46, 93, 44, 93, 81, 35, 85);
19441944
*
19451945
* point(25, 46);
@@ -1969,7 +1969,7 @@ function customShapes(p5, fn) {
19691969
* strokeWeight(2);
19701970
* spline(25, 46, 93, 44, 93, 81, 35, 85);
19711971
* ```
1972-
*
1972+
* <img src="assets/roundBulge.png"></img>
19731973
* Here's the example showing positive value of tightness,
19741974
* which makes the curve tighter and more angular:
19751975
*
@@ -1979,6 +1979,7 @@ function customShapes(p5, fn) {
19791979
* strokeWeight(2);
19801980
* spline(25, 46, 93, 44, 93, 81, 35, 85);
19811981
* ```
1982+
* <img src="assets/anglurBulge.png"></img>
19821983
*
19831984
* In all cases, the splines in p5.js are <a href = "https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline">cardinal splines</a>.
19841985
* When tightness is 0, these splines are often known as

0 commit comments

Comments
 (0)