File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -713,7 +713,7 @@ function pointer(p5, fn){
713
713
* <div>
714
714
* <code>
715
715
* function setup() {
716
- * createCanvas(400, 400 );
716
+ * createCanvas(200, 200 );
717
717
*
718
718
* describe(
719
719
* 'A gray square with black text at its center. The text changes from 0 to either "left" or "right" when the user clicks a mouse button.'
@@ -728,7 +728,9 @@ function pointer(p5, fn){
728
728
* textSize(16);
729
729
*
730
730
* // Display the mouse button.
731
- * text(JSON.stringify(mouseButton), 50, 50);
731
+ * text(`Left: ${mouseButton.left}`, width / 2, height / 2 - 20);
732
+ * text(`Right: ${mouseButton.right}`, width / 2, height / 2);
733
+ * text(`Center: ${mouseButton.center}`, width / 2, height / 2 + 20);
732
734
* }
733
735
* </code>
734
736
* </div>
You can’t perform that action at this time.
0 commit comments