Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf2206fb

Browse files
authored
Merge pull request#7997 from shawdm/dev-2.0-curves-docs-fix
Documentation fix for swapped parameters in splinePoint and bezierPoint
2 parentsb858de8 +3e43484 commitf2206fb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎src/shape/curves.js‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ function curves(p5, fn){
237237
* between them.
238238
*
239239
*@method bezierPoint
240-
*@param {Number} a coordinate of firstcontrol point.
241-
*@param {Number} b coordinate of firstanchor point.
242-
*@param {Number} c coordinate of secondanchor point.
243-
*@param {Number} d coordinate of secondcontrol point.
240+
*@param {Number} a coordinate of firstanchor point.
241+
*@param {Number} b coordinate of firstcontrol point.
242+
*@param {Number} c coordinate of secondcontrol point.
243+
*@param {Number} d coordinate of secondanchor point.
244244
*@param {Number} t amount to interpolate between 0 and 1.
245245
*@return {Number} coordinate of the point on the curve.
246246
*
@@ -684,10 +684,10 @@ function curves(p5, fn){
684684
* between them.
685685
*
686686
*@method splinePoint
687-
*@param {Number} a coordinate of firstanchor point.
688-
*@param {Number} b coordinate of firstcontrol point.
689-
*@param {Number} c coordinate of secondcontrol point.
690-
*@param {Number} d coordinate of secondanchor point.
687+
*@param {Number} a coordinate of firstcontrol point.
688+
*@param {Number} b coordinate of firstanchor point.
689+
*@param {Number} c coordinate of secondanchor point.
690+
*@param {Number} d coordinate of secondcontrol point.
691691
*@param {Number} t amount to interpolate between 0 and 1.
692692
*@return {Number} coordinate of a point on the curve.
693693
*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp