Skip to content

Commit b01f2c5

Browse files
authored
Merge pull request #416 from JulienBacquart/bugfix/no-ref/correct-constrain-documentation
Bugfix/no ref/correct constrain documentation
2 parents 82b7aa5 + 66ca81b commit b01f2c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

py5_docs/Reference/api_en/Sketch_constrain.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ constrain(amt: Union[float, npt.NDArray], low: Union[float, npt.NDArray], high:
99

1010
@@ variables
1111
amt: Union[float, npt.NDArray] - the value to constrain
12-
high: Union[float, npt.NDArray] - minimum limit
13-
low: Union[float, npt.NDArray] - maximum limit
12+
high: Union[float, npt.NDArray] - maximum limit
13+
low: Union[float, npt.NDArray] - minimum limit
1414

1515
@@ description
16-
Constrains a value to not exceed a maximum and minimum value.
16+
Constrains a value between a minimum and maximum value.
1717

1818
@@ example
1919
def draw():

0 commit comments

Comments
 (0)