Hello,
I’m traying to wrap a image to shape. I see that i can do it with a shape and a texture. The only problem is that textureWrape(textureWrap() / Reference / Processing.org) seems to works only on a beginshape and i want to use it on a svg shape.
The effect that i want to have is this:
Could you help me?
BlockquotePImage myImg;
PShape bot;
void setup() {
size(1000, 1000, P2D);
textSize(240);
textAlign(CENTER);
text("Sparks", width/2, height/2);
myImg = get();
myImg.resize(10,10);
bot = loadShape("tcp.svg");
}
void draw() {
bot.disableStyle();
background(230);
textureMode(NORMAL);
translate(width/2, height/2);
TextureWrap(CLAMP);
bot.setTexture(myImg);
shape(bot,-100,-400,100,100);
}