FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixing incorrect characters in the example that looked like subtraction · kaiquewdev/processing@e3595d4 · GitHub

Repository navigation

Commit e3595d4

Browse files
Yong Bakos
committed
Fixing incorrect characters in the example that looked like subtraction
operators but weren't. References processing/processing_web#45
1 parent ea1cf50 commit e3595d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • java/examples/Books/Processing Handbook/Extensions/Mobile/Ex_01

‎java/examples/Books/Processing Handbook/Extensions/Mobile/Ex_01/Ex_01.pde‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ PImage img = loadImage("sprite.png");
55
// The coordinates (0, 0) refer to the top-left corder of the screen
66
image(img, 0, 0);
77
// The following coordinate calculations will center the image in the screen
8-
image(img, (width – img.width) / 2, (height – img.height) / 2);
8+
image(img, (width - img.width) / 2, (height - img.height) / 2);
99
// Finally, the next line will position the image in the bottom-right corner
10-
image(img, width – img.width, height – img.height);
10+
image(img, width - img.width, height - img.height);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL