src/main/java/org/teachingextensions/logo/utils/MazeUtils/StdDraw.java
public static void text(double x, double y, String text, double degrees)
  {
    if (text == null)
      throw new NullPointerException();
    double xs = scaleX(x);
    double ys = scaleY(y);
    offscreen.rotate(Math.toRadians(-degrees), xs, ys);
    text(x, y, text);
    offscreen.rotate(Math.toRadians(+degrees), xs, ys);
  }
public static void text(double x, double y, String text, double degrees)
  {
    if (text == null)
      throw new NullPointerException();
    double xs = scaleX(x);
    double ys = scaleY(y);
    offscreen.rotate(Math.toRadians(-degrees), xs, ys);
    text(x, y, text);
    offscreen.rotate(Math.toRadians(+degrees), xs, ys);
  }
public static void text ( double x , double y , String text , double degrees ) { if ( text == null ) throw new NullPointerException ( ) ; double xs = scaleX ( x ) ; double ys = scaleY ( y ) ; offscreen . rotate ( Math . toRadians ( - degrees ) , xs , ys ) ; text ( x , y , text ) ; offscreen . rotate ( Math . toRadians ( + degrees ) , xs , ys ) ; }
Write the given text string in the current font, centered at (<em>x</em>, <em>y</em>) and
rotated by the specified number of degrees.
@param  x the center <em>x</em>-coordinate of the text
@param  y the center <em>y</em>-coordinate of the text
@param  text the text to write
@param  degrees is the number of degrees to rotate counterclockwise
Write the given text string in the current font centered at ( <em > x< / em > <em > y< / em > ) and rotated by the specified number of degrees .