Skip to content

Commit

Permalink
Fix map example
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN authored May 13, 2024
1 parent dade77a commit 5216446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/calculation.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ p5.prototype.mag = function(x, y) {
* let x = map(mouseX, 0, 100, 0, 50);
*
* // Draw the bottom line.
* line(0, 75, 0, x);
* line(0, 75, x, 75);
* }
* </code>
* </div>
Expand Down

0 comments on commit 5216446

Please sign in to comment.