public static GradientPaint makeRedPaint(final double width,final double height){
  return new GradientPaint(0f,0f,new Color(200,50,50),(float)width / 2,(float)height / 2,new Color(255,100,100),true);
}

public static GradientPaint makeRedPaint ( final double width , final double height ) { return new GradientPaint ( 0f , 0f , new Color ( 200 , 50 , 50 ) , ( float ) width / 2 , ( float ) height / 2 , new Color ( 255 , 100 , 100 ) , true ) ; }
creates a red gradient paint .
