src/codeandchords/ModuleMenu.java
public void trichromatic_OneRGB(int[] rgbVals, int inputNum)
	{
		if(rgbVals == null) {
			throw new IllegalArgumentException("Module_01_02.trichromatic_OneRGB: int[] parameter is null.");
		}

		float[]	hsbVals	= new float[3];
		Color.RGBtoHSB((int)rgbVals[0], (int)rgbVals[1], (int)rgbVals[2], hsbVals);

		this.trichromatic_OneHSB(hsbVals, inputNum);
	}
/**
	 * Converts the given color to HSB and sends it to dichromatic_OneHSB.
	 * (dichromatic_OneHSB will send it to _TwoHSB, which will set this.colors, changing the scale.)
	 * 
	 * @param rgbVals	float[] of RGB values defining the color for the tonic of the scale.
	 */
Converts the given color to HSB and sends it to dichromatic_OneHSB.
(dichromatic_OneHSB will send it to _TwoHSB, which will set this.colors, changing the scale.)

@param rgbVals       float[] of RGB values defining the color for the tonic of the scale.
Converts the given color to HSB and sends it to dichromatic_OneHSB . ( dichromatic_OneHSB will send it to _TwoHSB which will set this . colors changing the scale . ) @param rgbVals float [] of RGB values defining the color for the tonic of the scale .
public void trichromatic_OneRGB(int[] rgbVals, int inputNum)
	{
		if(rgbVals == null) {
			throw new IllegalArgumentException("Module_01_02.trichromatic_OneRGB: int[] parameter is null.");
		}
		float[]	hsbVals	= new float[3];
		Color.RGBtoHSB((int)rgbVals[0], (int)rgbVals[1], (int)rgbVals[2], hsbVals);
		this.trichromatic_OneHSB(hsbVals, inputNum);
	}
public void trichromatic_OneRGB ( int [ ] rgbVals , int inputNum ) { if ( rgbVals == null ) { throw new IllegalArgumentException ( "Module_01_02.trichromatic_OneRGB: int[] parameter is null." ) ; } float [ ] hsbVals = new float [ 3 ] ; Color . RGBtoHSB ( ( int ) rgbVals [ 0 ] , ( int ) rgbVals [ 1 ] , ( int ) rgbVals [ 2 ] , hsbVals ) ; this . trichromatic_OneHSB ( hsbVals , inputNum ) ; }
Converts the given color to HSB and sends it to dichromatic_OneHSB.
Converts the given color to HSB and sends it to dichromatic_OneHSB .