mirror of
https://github.com/processing/processing4.git
synced 2026-01-26 18:01:07 +01:00
Fixing incorrect characters in the example that looked like subtraction
operators but weren't. References processing/processing_web#45
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user