@Override
		public void setPaint( Paint paint ) {
			if( paint instanceof Color )
				paint = filterColor( (Color) paint );
			else if( paint instanceof LinearGradientPaint ) {
				LinearGradientPaint oldPaint = (LinearGradientPaint) paint;
				Color[] newColors = filterColors( oldPaint.getColors() );
				if( newColors != null ) {
					paint = new LinearGradientPaint( oldPaint.getStartPoint(), oldPaint.getEndPoint(),
						oldPaint.getFractions(), newColors, oldPaint.getCycleMethod(),
						oldPaint.getColorSpace(), oldPaint.getTransform() );
				}
			}
			super.setPaint( paint );
		}
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