forked from: 赤から緑へのグラデーション
赤から緑へのグラデーション
lineを使った赤から緑へのグラデーション
@author shmdmoto
/**
* Copyright aiueo164 ( http://wonderfl.net/user/aiueo164 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/p2PX
*/
// forked from lenonsun's 赤から緑へのグラデーション
// 赤から緑へのグラデーション
package
{
import frocessing.display.F5MovieClip2D;
/**
* lineを使った赤から緑へのグラデーション
* @author shmdmoto
*/
public class GraphicExample extends F5MovieClip2D
{
public function setup() : void
{
var a:Number;
for( a = 465 ; a >= 0 ; a-- ) {
stroke(255 - 255*a/465, 255*a/465,0);
ellipseMode(CENTER);
ellipse(232, 232, a, a);
}
}
}
}