Skip to content

Commit 38f4deb

Browse files
committed
Fix error in the examples for textureMode reference page
1 parent d97e3db commit 38f4deb

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

content/references/examples/processing/textureMode_/textureMode_0.pde

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PImage img = loadImage("shells.jpg");
44
beginShape();
55
texture(img);
66
vertex(40, 80, 0, 0);
7-
vertex(320, 20, 1, 0);
8-
vertex(380, 360, 1, 1);
9-
vertex(160, 380, 0, 1);
7+
vertex(320, 20, 400, 0);
8+
vertex(380, 360, 400, 400);
9+
vertex(160, 380, 0, 400);
1010
endShape();
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
size(400, 400, P3D);
22
noStroke();
33
PImage img = loadImage("shells.jpg");
4-
textureMode(IMAGE);
4+
textureMode(NORMAL);
55
beginShape();
66
texture(img);
77
vertex(40, 80, 0, 0);
8-
vertex(320, 20, 400, 0);
9-
vertex(380, 360, 400, 400);
10-
vertex(160, 380, 0, 400);
8+
vertex(320, 20, 1, 0);
9+
vertex(380, 360, 1, 1);
10+
vertex(160, 380, 0, 1);
1111
endShape();

0 commit comments

Comments
 (0)