public void text(double x,double y,String s,double degrees){
  double xs=scaleX(x);
  double ys=scaleY(y);
  offscreen.rotate(Math.toRadians(-degrees),xs,ys);
  text(x,y,s);
  offscreen.rotate(Math.toRadians(+degrees),xs,ys);
}

public void text ( double x , double y , String s , double degrees ) { double xs = scaleX ( x ) ; double ys = scaleY ( y ) ; offscreen . rotate ( Math . toRadians ( - degrees ) , xs , ys ) ; text ( x , y , s ) ; offscreen . rotate ( Math . toRadians ( + degrees ) , xs , ys ) ; }
writes the given text string in the current font , centered on ( x , y ) and rotated by the specified number of degrees .
