forked from: forked from: forked from: 青から緑へのグラデーション
forked from forked from: forked from: 赤から緑へのグラデーション (diff: 2)
青から緑へ縦にグラデーションしていくプログラムを組みました。
ActionScript3 source code
/**
* Copyright hubukihiroto189 ( http://wonderfl.net/user/hubukihiroto189 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/qFQ3
*/
// forked from hubukihiroto189's forked from: forked from: 赤から緑へのグラデーション
// forked from hubukihiroto189's forked from: 赤から緑へのグラデーション
// forked from lenonsun's 赤から緑へのグラデーション
// 赤から緑へのグラデーション
package
{
import frocessing.display.F5MovieClip2D;
/**
* lineを使った赤から緑へのグラデーション
* @author shmdmoto
*/
public class GraphicExample extends F5MovieClip2D
{
public function setup() : void
{
var y:Number;
for( y = 0 ; y <= 465 ; y++ ) {
stroke(0, 255*y/465, 255 - 255*y/465);
line(0, y, 465, y);
}
}
}
}
