赤から青へのグラデーション(円)
forked from 赤から青へのグラデーション(縦) (diff: 6)
ellipseの最初の2つの数字は中心点。 中心点を固定し、あとは色を変えて描画をするループ。
ActionScript3 source code
/**
* Copyright dog060 ( http://wonderfl.net/user/dog060 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/xech
*/
// forked from dog060's 赤から青へのグラデーション(縦)
// forked from dog060's forked from: 赤から緑へのグラデーション
// forked from shmdmoto's 赤から緑へのグラデーション
// forked from shmdmoto's 赤から緑へのグラデーション
package
{
import frocessing.display.F5MovieClip2D;
/**
* lineを使った赤から緑へのグラデーション
* @author shmdmoto
*/
public class GraphicExample extends F5MovieClip2D
{
public function setup() : void
{
var x:int;
noFill();
for( x = 1 ; x <= 465 ; x++ ) {
stroke(255-255*x/465, 0, 255*x/465);
ellipse(233,233,x,x);
}
}
}
}
