1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | // Wipe10(speed,color) function wipe10(s,c){ var x=0; while (x<125){ var y=0; while (y<45){ var nx=x-45+y; if (nx>-1){ uart(128,8,1,0,y,nx,y,c); } y=y+1; } x=x+1; sleep(s); } } // Sample Code uart( "\nPC IMAGE 07\n" ); function start(){ wipe10(0,0); } setKprs(start); |