赤から青へのグラデーション
forked from 赤から緑へのグラデーション (diff: 7)
ActionScript3 source code
/**
* Copyright lenonsun ( http://wonderfl.net/user/lenonsun )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/dwF0
*/
// 赤から青へのグラデーション
package
{
import frocessing.display.F5MovieClip2D;
/**
* lineを使った赤から青へのグラデーション
*/
public class GraphicExample extends F5MovieClip2D
{
public function setup() : void
{
var y:Number;
for( y = 0 ; y <= 465 ; y++ ) {
stroke(255 - 255*y/465, 0, 255*y/465);
line(0, y, 465, y);
}
}
}
}
