FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

texture()

   
Examples  
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(); 
Description   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().
   
Syntax  
texture(img); 
   
Parameters  
img   PImage: the texture to apply

   
Returns   None
   
Usage   Application & Web
   
Related   textureMode()
beginShape()
endShape()
vertex()
 
 






   
 
Updated: Fri Jul 15 16:36:15 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info