Fixing incorrect characters in the example that looked like subtraction

operators but weren't.
References processing/processing_web#45
This commit is contained in:
Yong Bakos
2013-04-05 13:05:06 -06:00
parent ae312eee2d
commit c233bb4a80

View File

@@ -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);