色相,彩度のグラデーション
HSBカラーモードでの色相,彩度のグラデーション
♥0 |
Line 18 |
Modified 2010-10-04 11:19:44 |
MIT License
archived:2017-03-10 11:16:38
ActionScript3 source code
/**
* Copyright shmdmoto ( http://wonderfl.net/user/shmdmoto )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/yYyp
*/
package
{
import frocessing.display.F5MovieClip2D;
/**
* pointを使った色相-彩度のグラデーション
* @author shmdmoto
*/
public class GraphicExample extends F5MovieClip2D
{
public function setup() : void
{
var x:Number, y:Number;
colorMode(HSB, 360, 100, 100);
for( y = 0 ; y <= 465 ; y++ ) {
for( x = 0 ; x <= 465 ; x++ ){
stroke( 360 * x / 465, 100 * y / 465, 100 );
point( x, y );
}
}
}
}
}