Code Sketch


art
By: Guruprasad Sawant
Category: Art
clear()
//showAxes()
//showGrid()
setBackgroundH(yellow, white)
guru.draw

def guru = picStack(
    Picture {},
    square.thatsFilledWith(black),
    square.thatsFilledWith(green).thatsRotated(16),
    star.thatsFilledWith(blue),
    star.thatsFilledWith(red).withFlippedY,
)

def square = Picture {
    repeat(6) {
        repeat(4) {
            forward(100)
            right(90)
        }
        right(60)
    }

}

def star = Picture {
    repeat(9) {
        forward(100)
        right(160)
    }
}