All pastes #375151 Raw Edit

Untitled

public text v1 · immutable
#375151 ·published 2007-02-28 01:16 UTC
rendered paste body
package yield;
 
import TurtleGraphics.*;

public class stop {
    public StandardPen pen;

    public stop(byte size, int length, String text) {
       pen = new StandardPen();

       pen.up();
       pen.move(60);
       pen.turn(30);
       pen.down();
       drawPoly(sides, length);

       pen.up();
       pen.turn(133);
       pen.move(50);
       pen.down();

       pen.drawString(text);
    }
 
    public void drawPoly(byte sides, int length){
        while (sides > 0) {
            pen.turn(120);
                for (byte y=0; y <= length; y++) {
                    pen.move(10); pen.drawString("*");
                }
        }
    }

    public static void main(String[] args) {
        Stop yeild = new Stop(3, 10, "YEILD"); 
    }
 
}