// Project: ProgressCircle SetVirtualResolution( 100, 100 ) global spr as integer[100] for i=0 to 99 spr[i]=CreateSprite(0) r# = i * (360.0/100.0) SetSpriteSize(spr[i],1,1) SetSpriteAngle(spr[i],r#) x#= sin(r#)*10.0 y#=-cos(r#)*10.0 SetSpritePositionByOffset(spr[i],50+x#,50.0+y#) next p=0 do p=p+1 if p>100 then p=p-100 UpdateProgress(p) Print( ScreenFPS() ) Sync() loop end function UpdateProgress(p) for i=0 to 99 s=spr[i] if i<=p SetSpriteColorAlpha(s,255) else SetSpriteColorAlpha(s,64) endif next endfunction