例題 青から赤へのグラデーション 正方形
forked from 例題 青から赤へのグラデーション 円形 (diff: 4)
lineを使った赤から緑へのグラデーション @author shmdmoto
ActionScript3 source code
/**
* Copyright bluecomet021 ( http://wonderfl.net/user/bluecomet021 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/roXY
*/
// forked from bluecomet021's 例題 青から赤へのグラデーション 円形
// forked from bluecomet021's 例題 青から赤へのグラデーション
// forked from bluecomet021's 例題 青から緑へのグラデーション
// 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 r:int;
noFill();
for( r = 0 ; r <= 465 ; r++ ) {
stroke(0,255*r/465, 255-255*r/465);
rectMode(CENTER);
rect(465/2, 465/2, r,r);
}
}
}
}
