Untitled

mail@pastecode.io avatar
unknown
plain_text
10 days ago
1.3 kB
2
Indexable
Never
function goToTopRight() {
    while (frontIsClear()) {
        move();
    }
    turnLeft();
    
    while (frontIsClear()) {
        move();
    }
    
    turnLeft();
}
function fillSky() {
    goToTopRight();
    for (var i = 0; i < 5; i++) {
        for (var j = 0; j < 48; j++) {
            paint(Color.createFromRGB(250,228,209,255));
            if (j < 47) {
                move();
            }
        }
        
        if (i < 4) {
            turnLeft();
            move();
            turnLeft();
            
            for (var k = 0; k < 47; k++) { 
                move();
            }
            
            turnLeft();
            turnLeft();
        }
    }
    turnAround();
    for (var i = 0; i < 11; i++){
        move();
    }
    turnRight();
    for (var i = 0; i < 3; i++){
        move();
    }
    turnLeft();
}

function fillSky2() {
    for (var i = 0; i < 4; i++) {
        for (var j = 0; j < 37; j++) {
            paint(Color.createFromRGB(219,204,213));
            if (j < 36) {
                move();
            }
        }
        
        if (i < 3) {
            turnLeft();
            move();
            turnLeft();
            
            for (var k = 0; k < 36; k++) {
                move();
            }
            
            turnLeft();
            turnLeft();
        }
    }
}
Leave a Comment