Thx Irag for your exemple.
I tried to apply it, but it doesn't work.
Quote:void tadpole(){
PImage img = loadImage("texture.jpg");
textureMode(NORMALIZED);
float[] pos;
beginShape();
texture(img);
pos = calc( 0f, -1f, fsize );
bezierVertex( pos[0], pos[1] );
pos = calc( 0.5f, -1f, fsize );
bezierVertex( pos[0], pos[1] );
pos = calc( 1f, -0.5f, fsize );
bezierVertex( pos[0], pos[1] );
pos = calc( 1f, 0f, fsize );
bezierVertex( pos[0], pos[1] );
pos = calc( 1f, 1f, fsize );
bezierVertex( pos[0], pos[1] );
pos = calc( tailPC[0], tailPC[1], fsize );
bezierVertex( pos[0], pos[1] );
pos = calc( tailP[0], tailP[1], fsize );
bezierVertex( pos[0], pos[1] );
pos = calc( tailPC[0], tailPC[1], fsize );
bezierVertex( pos[0], pos[1] );
pos = calc( -1f, 1f, fsize );
bezierVertex( pos[0], pos[1] );
pos = calc( -21f, 0f, fsize );
bezierVertex( pos[0], pos[1] );
pos = calc( -1f, -0.5f, fsize );
bezierVertex( pos[0], pos[1] );
pos = calc( -0.5f, -1f, fsize );
bezierVertex( pos[0], pos[1] );
pos = calc( 0f, -1f, fsize );
bezierVertex( pos[0], pos[1] );
endBezier();
endShape(CLOSE);
What i'm doing wrong ?
Any help is welcome