lib/toxi/color/ColorRange.js
function( c, num, variance ){
            if( arguments.length < 3 ){
                variance = ColorRange.DEFAULT_VARIANCE;
            }
            if( arguments.length === 1 ){
                num = c;
                c = undefined;
            }
            var list = new ColorList();
            for( var i=0; i<num; i++){
                list.add(this.getColor(c, variance));
            }
            return list;
        }
function( c, num, variance ){
            if( arguments.length < 3 ){
                variance = ColorRange.DEFAULT_VARIANCE;
            }
            if( arguments.length === 1 ){
                num = c;
                c = undefined;
            }
            var list = new ColorList();
            for( var i=0; i<num; i++){
                list.add(this.getColor(c, variance));
            }
            return list;
        }
function ( c , num , variance ) { if ( arguments . length < 3 ) { variance = ColorRange . DEFAULT_VARIANCE ; } if ( arguments . length === 1 ) { num = c ; c = undefined ; } var list = new ColorList ( ) ; for ( var i = 0 ; i < num ; i ++ ) { list . add ( this . getColor ( c , variance ) ) ; } return list ; }
creates a new `toxi.color.ColorList` of colors based
on constraints of this range
1.
@param {Number} num integer of how many colors to get
2.
@param {toxi.color.TColor} c
@param {Number} num
@param {Number} variance
@return {toxi.color.ColorList} list
creates a new toxi . color . ColorList of colors based on constraints of this range 1 .