All pastes #375135 Raw Edit

Untitled

public text v1 · immutable
#375135 ·published 2007-02-28 01:02 UTC
rendered paste body
/*
 * stop.java
 *
 * Created on February 23, 2007, 8:00 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package yield;

import TurtleGraphics.*;

/**
 *
 * @author valanam
 */
public class stop {

    /** Creates a new instance of stop */
    public stop() {
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        StandardPen pen = new StandardPen();
        int x = 0;
        int y;
        int t = 0;

        pen.up();
        pen.move(60);
        pen.turn(30);
        pen.down();

        while (t <= 3) {
                        t++;
            pen.turn(120);
                for (y=0; y <= 10; y++) {
                    y++;
                    pen.move(10); pen.drawString("*");
            }

        }
        //Draw the yield sign
        /*for (x=1; x<=3; x++) {
            pen.turn(120); pen.move(75);
        }*/

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

        pen.drawString("YIELD");
    }

}