double b, c; point p[] = new point[144]; //string point; double hpx[] = new double[144]; //home position x double hpy[] = new double[144]; //home position y double dire[] = new double[p.length]; //point's direction double zoom; //zoom double xx, yy; //for input p.x, p.y String st[] = new String[p.length]; String stt = new String("ThisIsMotionExpressLanguage. IfYouWish,YouCanGenerateTheObjectWhichCarriesOutADynamicMotion. Let'sEnjoyDynamicWorld!!!!!URL:motionexpress.net/mel/"); boolean mouseP; //sample [setup, 300, 300]{ xx = monitorWidth / (Math.sqrt(p.length) + 1); yy = monitorHeight / (Math.sqrt(p.length) + 1); int ii = 0; for(int i = 0; i < p.length; i++){ p[i] = point(xx, yy); hpx[i] = xx; hpy[i] = yy; xx = xx + monitorWidth / (Math.sqrt(p.length) + 1); ii += 1; if(Math.sqrt(p.length) <= ii){ yy += monitorHeight / (Math.sqrt(p.length) + 1); xx = monitorWidth / (Math.sqrt(p.length) + 1); ii = 0; } dire[i] = Math.PI * 2 *random(); } for(int i = 0; i < p.length; i++){ st[i] = stt.substring(i, i+1); } b =10; setFontName("Helvetica"); } [paint]{ clearAll(); setFontSize(10); setColor(0, 0, 0); for(int i = 0; i < p.length; i++){ drawString(st[i], p[i].x, p[i].y); } } [always]{ for(int i =0; i < p.length; i ++){ if(mouseP ==true){ p[i].pushTo(hpx[i], hpy[i]); }else{ p[i].push(b, dire[i]); } } } [mousePressed]{ mouseP =true; } [mouseReleased]{ mouseP = false; }