Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PImage txtr;
- PShape shp;
- void setup() {
- size(512, 256, P3D);
- txtr = loadImage("txtr.png");
- shp = createShape(BOX, 128);
- shp.setStroke(0);
- shp.setTexture(txtr);
- shp.translate(384, 128, 0);
- }
- void draw() {
- background(0xff007fff);
- image(txtr, 0, 0, 256, 256);
- shape(shp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement