赤から緑へのグラデーション
♥0 |
Line 15 |
Modified 2011-08-06 21:37:20 |
MIT License
archived:2017-03-10 10:14:23
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/qPeb
*/
// 赤から緑へのグラデーション
package
{
import frocessing.display.F5MovieClip2D;
/**
* lineを使った赤から緑へのグラデーション
* @author shmdmoto
*/
public class GraphicExample extends F5MovieClip2D
{
public function setup() : void
{
var x:int;
for( x = 0 ; x <= 255 ; x++ ) {
stroke(255 - x, x,0);
line(x, 0, x, 465);
}
}
}
}