import java.awt.*; import java.awt.image.*; import javax.imageio.ImageIO; import java.io.File; import java.io.IOException; class Main { static final int X = 500, Y = 500; static BufferedImage I = new BufferedImage(X, Y, BufferedImage.TYPE_INT_RGB); static double xoff; static int xs(double x){return (int)(X/2*(x+xoff));} static int ys(double y){return (int)(Y-Y/2*(y+1));} static public void main(String[] args){ double T = new Float(args[0]); xoff = new Float(args[1]); WritableRaster wr = I.getRaster(); if (false) {int[] a = new int[3]; a[2] = 128; for(int j = 0; j 0) try {ImageIO.write( I, args[q].substring(z+1), new File(args[q]));} catch (IOException e) {System.err.println("image not saved.");}} } } class MainCanvas extends Canvas { public void paint(Graphics g) { g.drawImage(Main.I, 0, 0, Color.red, null); Dimension s = getSize(); g.drawOval(0, 0, s.width, s.height); } }