flash on 2011-10-19
from http://www40.atwiki.jp/spellbound/pages/143.html
♥0 |
Line 28 |
Modified 2011-10-19 18:06:53 |
MIT License
archived:2017-03-20 19:44:50
ActionScript3 source code
/**
* Copyright y_tama ( http://wonderfl.net/user/y_tama )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/iJ5t
*/
package
{
//from http://www40.atwiki.jp/spellbound/pages/143.html
import frocessing.display.F5MovieClip2D;
public class Main extends F5MovieClip2D
{
private var degree:Number;
private var h:Number;
public function setup():void
{
degree = 0;
h = 0;
colorMode(HSV, 360, 1.0, 1.0);
noStroke();
}
public function draw():void
{
translate(200, 200);
rotate(radians(degree));
fill(h, 1.0, 1.0);
// rect(0, 0, 100, 100);
// rect(-10, -10, 10, 10);
for(var i:uint=0;i<=10;i++){
rect(i*15,i*15,10,10);
}
degree++;
h++;
}
}
}