public static Function<Color, Color> createRGBImageFilterFunction( RGBImageFilter rgbImageFilter ) {
			return color -> {
				int oldRGB = color.getRGB();
				int newRGB = rgbImageFilter.filterRGB( 0, 0, oldRGB );
				return (newRGB != oldRGB) ? new Color( newRGB, true ) : 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