forked from: forked from: キャンバスの左半分にランダムに円を配置
円をキャンバスの左半分にランダムに配置する
@author shmdmoto
♥0 |
Line 20 |
Modified 2011-06-20 18:02:31 |
MIT License
archived:2017-03-20 05:12:12
ActionScript3 source code
/**
* Copyright shinw ( http://wonderfl.net/user/shinw )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/6Vt8
*/
// forked from ufo's forked from: キャンバスの左半分にランダムに円を配置
// forked from shmdmoto's キャンバスの左半分にランダムに円を配置
package
{
import frocessing.display.F5MovieClip2D;
/**
* 円をキャンバスの左半分にランダムに配置する
* @author shmdmoto
*/
public class GraphicExample extends F5MovieClip2D
{
public function setup() : void
{
var i:int;
var x:Number;
var y:Number;
for( i = 1 ; i <=2000 ; i++ ) {
x = random( 465 );
y = random( 465 );
//if( x < y ) {
if(x < 130 && x > 180) {
ellipse( x, y, 20, 20);
}
}
}
}
}