!7 sS imageID = #1006973; static int width = 200; p { BufferedImage img = loadBufferedImage(imageID); BufferedImage resized = resizeImage(img, width); final Window w = showAnimation(resized); final Shape shape = scaleShape(alphaToShape(img), width/(double) img.getWidth()); swing { w.setShape(shape); } repeat with ms sleep 20 { w.setLocation(mouseX()+2, mouseY()+2); } }