forked from: forked from: fr004
色かわらない?
// forked from yokozunat's forked from: fr004
// forked from kimucha's fr004
package
{
import frocessing.display.F5MovieClip2DBmp;
//色かわらない?
[SWF(backgroundColor="#ffeeff", frameRate=20)]
public class Main extends F5MovieClip2DBmp
{
private var _saveX:Number = 0;
private var _saveY:Number = 0;
public function Main()
{
super();
size(465, 465);
rectMode(CENTER);
colorMode(RGB, 255, 255, 255, 100);
//変わらない?
//swcが更新されていけるようになりました。すんまそん
background(255, 244, 255, 100);
fill(255, 255, 255);
stroke(66, 66, 66);
}
public function draw():void
{
var w:Number = dist(_saveX, _saveY, mouseX, mouseY) / 2 + 10;
rect(mouseX, mouseY, w, w);
_saveX = mouseX;
_saveY = mouseY;
}
}
}