forked from: 線を引く
forked from 線を引く (diff: 14)
Frocessingを使った直線の描画 @author shmdmoto
ActionScript3 source code
/**
* Copyright yumoi ( http://wonderfl.net/user/yumoi )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/uOOq
*/
// forked from shmdmoto's 線を引く
package
{
import frocessing.display.F5MovieClip2D;
/**
* Frocessingを使った直線の描画
* @author shmdmoto
*/
public class GraphicExample extends F5MovieClip2D
{
public function draw() : void
{
// ここに描画命令を記述します.
line(100,200,200,100);
line(200,100,200,200);
stroke(0,230,125);
strokeWeight(30);
line(200,200,100,200);
line(200,200,100,100);
strokeWeight(30);
// 線の色の変更
stroke(200,230,125);
strokeWeight(1);
stroke(0,0,0);
}
}
}
