public void drawLightning(int length)
  {
    this.setX(50);
    this.setY(350);
    this.setSpeed(10);
    for (int i = 1; i < 5; i++)
    {
      this.setPenWidth(i * 4);
      this.turn(65 + i);
      this.move(length);
      this.turn(-65);
      this.move(length);
    }
  }
public void drawLightning(int length)
  {
    this.setX(50);
    this.setY(350);
    this.setSpeed(10);
    for (int i = 1; i < 5; i++)
    {
      this.setPenWidth(i * 4);
      this.turn(65 + i);
      this.move(length);
      this.turn(-65);
      this.move(length);
    }
  }
public void drawLightning ( int length ) { this . setX ( 50 ) ; this . setY ( 350 ) ; this . setSpeed ( 10 ) ; for ( int i = 1 ; i < 5 ; i ++ ) { this . setPenWidth ( i * 4 ) ; this . turn ( 65 + i ) ; this . move ( length ) ; this . turn ( - 65 ) ; this . move ( length ) ; } }
Draws a lightning bolt of a specified length
<p><b>Example:</b> {@code myTurtle.drawLightning(length)}</p>

@param length
The length of a lightning bolt
Draws a lightning bolt of a specified length <p > <b > Example : < / b > { @code myTurtle . drawLightning ( length ) } < / p >