Skip to content

Commit a0c52a9

Browse files
authored
Merge pull request #7036 from PalumboN/patch-1
Fix map example
2 parents f0aa5ed + 5216446 commit a0c52a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/math/calculation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ p5.prototype.mag = function(x, y) {
574574
* let x = map(mouseX, 0, 100, 0, 50);
575575
*
576576
* // Draw the bottom line.
577-
* line(0, 75, 0, x);
577+
* line(0, 75, x, 75);
578578
* }
579579
* </code>
580580
* </div>

0 commit comments

Comments
 (0)