Skip to content

Commit 1e33171

Browse files
authored
Merge pull request #6413 from Utkarsh3128/main
Fixed mousePressed() Example Error
2 parents 88ea17e + 05a4e8d commit 1e33171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/events/mouse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ p5.prototype._onmousemove = function(e) {
621621
* describe('black 50-by-50 rect turns white with mouse click/press.');
622622
* }
623623
* function mousePressed() {
624-
* if (value === 0) {
624+
* if (colorValue === 0) {
625625
* colorValue = 255;
626626
* } else {
627627
* colorValue = 0;

0 commit comments

Comments
 (0)