-
-
Notifications
You must be signed in to change notification settings - Fork 4
texture_
villares edited this page May 24, 2020
·
4 revisions
```pde
noStroke();
PImage a = loadImage("arch.jpg");
beginShape();
texture(a);
vertex(10, 20, 0, 0);
vertex(80, 5, 100, 0);
vertex(95, 90, 100, 100);
vertex(40, 95, 0, 100);
endShape();
<img height="25" src="../images/1pix.gif" width="1"/>
#### Descrição
Sets a texture to be applied to vertex points. The**texture()** function must be called between**beginShape()** and**endShape()** and before any calls to**vertex()**.
<img height="25" src="../images/1pix.gif" width="1"/>
#### Sintaxe
```pde
texture(<font color="#996600">img</font>);
Nenhum
![]()
Application & Web
![]()
A referência de Processing está sob a licença Creative Commons BY-NC conforme indicado aqui. Esta Wiki-tradução é baseada na tradução e adaptação para o Português do Brasil do professor Luiz Ernesto Merkle