Skip to content

Commit 5216446

Browse files
authored
Fix map example
1 parent dade77a commit 5216446

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)