private Color filterColor( Color color ) {
			if( colorFilter != null ) {
				Color newColor = colorFilter.filter( color );
				color = (newColor != color)
					? newColor
					: globalColorFilter.filter( color );
			} else
				color = globalColorFilter.filter( color );

			if( grayFilter != null ) {
				int oldRGB = color.getRGB();
				int newRGB = grayFilter.filterRGB( 0, 0, oldRGB );
				color = (newRGB != oldRGB) ? new Color( newRGB, true ) : color;
			}
			return color;
		}
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