彩度変化のグラデーション
forked from 色相変化のグラデーション (diff: 4)
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/5jje
*/
// 彩度変化のグラデーション
package
{
import frocessing.display.F5MovieClip2D;
/**
* lineを使った彩度変化のグラデーション
*/
public class GraphicExample extends F5MovieClip2D
{
public function setup() : void
{
var x:Number;
colorMode(HSB, 360, 100, 100);
for( x = 0 ; x <= 465 ; x++ ) {
stroke(5, 100*x/465, 100);
line(x, 0, x, 465);
}
}
}
}
