We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0c07cb + e3595d4 commit b625969Copy full SHA for b625969
1 file changed
java/examples/Books/Processing Handbook/Extensions/Mobile/Ex_01/Ex_01.pde
@@ -5,6 +5,6 @@ PImage img = loadImage("sprite.png");
5
// The coordinates (0, 0) refer to the top-left corder of the screen
6
image(img, 0, 0);
7
// The following coordinate calculations will center the image in the screen
8
-image(img, (width – img.width) / 2, (height – img.height) / 2);
+image(img, (width - img.width) / 2, (height - img.height) / 2);
9
// Finally, the next line will position the image in the bottom-right corner
10
-image(img, width – img.width, height – img.height);
+image(img, width - img.width, height - img.height);
0 commit comments