package examples;

import chess.Chess;
import chess.Screen;
import chess.Turtle;

public class Rainbow {
    
    public static void main(String[] args) {
        /* here you go */
        
        Screen g= Chess.newScreen();
        Turtle tim= g.newTurtle();
        
        tim.setLineWidth(10);
        
        tim.setPosition( 64, 152 );
        
        int hue=0;
        while ( hue<=360 ) {
            tim.setHSVColor(hue, 1.0, 1.0 );
            tim.forward(10);
            tim.penUp(); tim.forward(20); tim.penDown();
            
            
            tim.right(15);
            hue= hue + 15;
        }
        
        
        /* two braces below */
    }
    
}
