| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ea1cf50 commit e3595d4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,6 @@ PImage img = loadImage("sprite.png"); | |||
| 5 | 5 | // The coordinates (0, 0) refer to the top-left corder of the screen | |
| 6 | 6 | image(img, 0, 0); | |
| 7 | 7 | // 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); | ||
| 9 | 9 | // 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); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments