flash on 2010-2-19
♥2 |
Line 20 |
Modified 2010-02-19 19:07:19 |
MIT License
archived:2017-03-20 16:39:11
ActionScript3 source code
/**
* Copyright aass ( http://wonderfl.net/user/aass )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/zjDa
*/
package {
import flash.display.Sprite;
import frocessing.display.F5MovieClip2D;
[SWF(width=465,height=465,backgroundColor=0x000000)]
public class FlashTest extends F5MovieClip2D {
public function FlashTest() {
// write as3 code here..
var n:int = 10;
//線は描画しない
noStroke();
//HSVで色指定
//値の範囲を、色相(0~n)、彩度(0~1)、明度(0~n)に指定
colorMode(HSV, n , 1, n);
for (var i:int = 0; i <= n; i++) {
for(var j:int = 0; j <= n; j++) {
//塗りの指定
fill(i,1,n-j);
//円の描画
var cx:Number = 33 + 40 * i;
var cy:Number = 33 + 40 * j;
circle(cx, cy, 19);
}
}
}
}
}