src/codeandchords/ModuleMenu.java
protected	void fillHSBColors()
	{
		if(this.hsbColors == null) {
			this.hsbColors = new int[this.module.getTotalNumInputs()][this.colorSelect.length][3];
		}

		// Only do this after the colors have been initialized:
		if(this.firstColorSelectCWId > 0)
		{
			for(int i = 0; i < this.hsbColors.length; i++)
			{
				for(int j = 0; j < this.hsbColors[i].length; j++)
				{
					this.hsbColors[i][j]	= this.colors[i][j];
				} // for - j
			} // for - i

		} else {
			// Let the user know what we skipped this:
			System.err.println("ModuleTemplate.fillHSBColors: firstColorSelectCWId == " + this.firstColorSelectCWId + 
					"; did not fill hsbColors.");
		} // else
	}
/**
	 * Puts the contents of this.colors into this.hsbColors so that HSB sliders will have a base to go off of
	 * (else they won't know how much to add to the colors each time).
	 * It is important to call this method whenever there has been a change of colors, e.g., at the end of
	 * rainbow() or trichromatic_ThreeRGB.
	 */
Puts the contents of this.colors into this.hsbColors so that HSB sliders will have a base to go off of
(else they won't know how much to add to the colors each time).
It is important to call this method whenever there has been a change of colors, e.g., at the end of
rainbow() or trichromatic_ThreeRGB.
Puts the contents of this . colors into this . hsbColors so that HSB sliders will have a base to go off of ( else they won ' t know how much to add to the colors each time ) . It is important to call this method whenever there has been a change of colors e . g . at the end of rainbow () or trichromatic_ThreeRGB .
protected	void fillHSBColors()
	{
		if(this.hsbColors == null) {
			this.hsbColors = new int[this.module.getTotalNumInputs()][this.colorSelect.length][3];
		}
		if(this.firstColorSelectCWId > 0)
		{
			for(int i = 0; i < this.hsbColors.length; i++)
			{
				for(int j = 0; j < this.hsbColors[i].length; j++)
				{
					this.hsbColors[i][j]	= this.colors[i][j];
				} 
			} 
		} else {
			System.err.println("ModuleTemplate.fillHSBColors: firstColorSelectCWId == " + this.firstColorSelectCWId + 
					"; did not fill hsbColors.");
		} 
	}
protected void fillHSBColors ( ) { if ( this . hsbColors == null ) { this . hsbColors = new int [ this . module . getTotalNumInputs ( ) ] [ this . colorSelect . length ] [ 3 ] ; } if ( this . firstColorSelectCWId > 0 ) { for ( int i = 0 ; i < this . hsbColors . length ; i ++ ) { for ( int j = 0 ; j < this . hsbColors [ i ] . length ; j ++ ) { this . hsbColors [ i ] [ j ] = this . colors [ i ] [ j ] ; } } } else { System . err . println ( "ModuleTemplate.fillHSBColors: firstColorSelectCWId == " + this . firstColorSelectCWId + "; did not fill hsbColors." ) ; } }
Puts the contents of this.colors into this.hsbColors so that HSB sliders will have a base to go off of
 (else they won't know how much to add to the colors each time).
Puts the contents of this . colors into this . hsbColors so that HSB sliders will have a base to go off of ( else they won ' t know how much to add to the colors each time ) .
// Only do this after the colors have been initialized: // for - j // for - i // Let the user know what we skipped this: // else