Merge pull request #1717 from ybakos/p5_web_45_examples_HandbookExtensionsMobile_ex01

Examples patch (1 of 9)
This commit is contained in:
Casey Reas
2013-04-05 14:34:20 -07:00
@@ -5,6 +5,6 @@ PImage img = loadImage("sprite.png");
// The coordinates (0, 0) refer to the top-left corder of the screen
image(img, 0, 0);
// The following coordinate calculations will center the image in the screen
image(img, (width img.width) / 2, (height img.height) / 2);
image(img, (width - img.width) / 2, (height - img.height) / 2);
// Finally, the next line will position the image in the bottom-right corner
image(img, width img.width, height img.height);
image(img, width - img.width, height - img.height);