Skip to content

Commit d8a9b02

Browse files
Improve norm function reference
1 parent f8c7ec8 commit d8a9b02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/math/calculation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,7 @@ p5.prototype.min = function() {
579579
* Normalizes a number from another range into a value between 0 and 1.
580580
* Identical to map(value, low, high, 0, 1).
581581
* Numbers outside of the range are not clamped to 0 and 1, because
582-
* out-of-range values are often intentional and useful. (See the second
583-
* example above.)
582+
* out-of-range values are often intentional and useful. (See the example above.)
584583
*
585584
* @method norm
586585
* @param {Number} value incoming value to be normalized
@@ -596,6 +595,7 @@ p5.prototype.min = function() {
596595
* let upperBound = width; //100;
597596
* let normalized = norm(currentNum, lowerBound, upperBound);
598597
* let lineY = 70;
598+
* stroke(3);
599599
* line(0, lineY, width, lineY);
600600
* //Draw an ellipse mapped to the non-normalized value.
601601
* noStroke();

0 commit comments

Comments
 (0)