赤から青へのグラデーション 課題2
forked from 青から緑へのグラデーション 課題1 (diff: 3)
ActionScript3 source code
/**
* Copyright ym054 ( http://wonderfl.net/user/ym054 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/m6Rg
*/
// forked from ym054's 青から緑へのグラデーション 課題1
// forked from shmdmoto's 赤から緑へのグラデーション
package
{
import frocessing.display.F5MovieClip2D;
/**
* lineを使った赤から緑へのグラデーション
* @author shmdmoto
*/
public class GraphicExample extends F5MovieClip2D
{
public function setup() : void
{
var x:int;
for( x = 0 ; x <= 465 ; x++ ) {
stroke(255 - 255*x/465, 0,255*x/465);
line(0, x, 465, x);
}
}
}
}
