キャンバスの左半分にランダムに円を配置
キャンバスの左半分の領域内にランダムに円を配置する
♥0 |
Line 20 |
Modified 2010-10-11 00:59:16 |
MIT License
archived:2017-03-10 06:26:55
ActionScript3 source code
/**
* Copyright shmdmoto ( http://wonderfl.net/user/shmdmoto )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/tgJN
*/
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 <=1000 ; i++ ) {
x = random( 465 );
y = random( 465 );
if( x < 465 / 2 ) {
ellipse( x, y, 20, 20);
}
}
}
}
}