Skip to content

texture_

villares edited this page May 24, 2020 · 4 revisions

Nome

texture()

Exemplos

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

Parâmetros img PImage: the texture to apply

Retorno

Nenhum

Utilização

Application & Web

Relacionado

textureMode() beginShape() endShape() vertex()

Clone this wiki locally