/** KaosAnimationV2 Applet Copyright(c) 2001 WakuWaku.All rights reserved.*/ import java.awt.*; import java.awt.image.*; import java.applet.Applet; public class KaosWing extends Applet implements Runnable { public static final int width=400,height=400; Thread th=null; Image img; //オフスクリーンバッファ boolean clear=false; public void init() { setBackground(Color.black); img=createImage(width,height); } public void start() { if(th==null) { th=new Thread(this); //スレッド作成 th.setPriority(th.NORM_PRIORITY+1); } th.start(); } public void stop() { if(th!=null) { th.stop(); //スレッド停止 th=null; } } public void run() { int count=0,i=0,px,py; double x,y,x0,y0,x00=0.1,y00=0.0 ,a=-0.97,da=0.01,b=0.97,db=0.01; x0=x00; y0=y00; int[] p=new int[width*height]; //イメージ配列を黒色で初期化 for(int j=0;j