Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void drawT(int size){ // the parameter letter of H T and E are normal and not
- this.penDown(); // hollow like the drawWord() versions
- this.forward(size); //this is the parameter version of T
- this.turnRight();
- this.forward(size/2);
- this.backward(size);
- this.penUp();
- }
- public void drawH(int size){ // this is the parameter version of drawH
- this.penDown(); // I was going to use two variables initially
- this.forward(size); // then realized H works better with just one variable.
- this.backward(size/2);
- this.turnRight();
- forward(size/3);
- this.turnLeft();
- forward(size/2);
- backward(size);
- this.penUp();
- }
- public void drawH(int size){ // this is the parameter version of drawE
- public void drawT(){ // The letter helper methods are first declared to make the
- this.penDown(); // drawWord() method look much cleaner. Each letter opens
- this.forward(30); // with the pen being up as to avoid cluttering drawWord()
- this.turnRight(); // as well as to allow easier movement of the turtle.
- this.forward(30);
- this.turnLeft();
- this.forward(15);
- this.turnLeft();
- this.forward(80);
- this.turnLeft();
- this.forward(15);
- this.turnLeft();
- this.forward(30);
- this.turnRight();
- this.forward(60);
- this.turnLeft();
- this.forward(20);
- this.turnLeft();
- this.forward(30);
- this.penUp();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement