Hi, so I have been pulling my hair out trying to animate a PImage (technically a PGraphics object) onto screen with Ani controlling the X and Y Co-ords.
After struggling with this I popped in an ellipse instead of my PImage and PRESTO! Ani works like magic.... Printing the animated variables shows they are changing but for some reason the PImage is invisible.... What is going on here? In the sketch below you can see both the ellipse and the PImage are being animated but when you run it only the ellipse is shown.
Any guesses at the cause would be highly appreciated!
//I create a off screen buffer to generate my badge on.
PGraphics badgebuf = createGraphics(110,110,JAVA2D);
Badge () {
super ( -100, -100);
buildBadge();
}
void buildBadge () {
//This should draw a red circle onto my buffer
badgebuf.beginDraw();
badgebuf.fill(255,0,0,100);
badgebuf.ellipse (width/2, height/2, 100, 100);
badgebuf.endDraw();
}