private Color[] filterColors( Color[] colors ) {
			Color[] newColors = new Color[colors.length];
			boolean changed = false;
			for( int i = 0; i < colors.length; i++ ) {
				newColors[i] = filterColor( colors[i] );
				changed = (changed || newColors[i] != colors[i]);
			}
			return changed ? newColors : null;
		}
Creates a color modifying function that uses {@link RGBImageFilter#filterRGB(int, int, int)}.
Can be set to a {@link ColorFilter} using {@link ColorFilter#setMapper(Function)}.

@see GrayFilter
@since 1.2
flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatSVGIcon.java