Skip to content

texture_

villares edited this page May 24, 2020 · 4 revisions

Nome

texture()

Exemplos

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

Descrição

Sets a texture to be applied to vertex points. Thetexture() function must be called betweenbeginShape() andendShape() and before any calls tovertex().

Sintaxe

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