private int index(int index, final int from, final int to) {
		index += from;
		if ((index < from) || (index >= to)) {
			throw new IllegalArgumentException("Color index not in range: [0, " + (to - from) + "]");
		}
		return index;
	}
private int index ( int index , final int from , final int to ) { index += from ; if ( ( index < from ) || ( index >= to ) ) { throw new IllegalArgumentException ( "Color index not in range: [0, " + ( to - from ) + "]" ) ; } return index ; }
---------------------------------------------------------------- bgcolors