Code Sketch


art
By: Guruprasad Sawant
Category: Art
cleari()
//By:Guruprasad 
//showGrid()
//showAxes()
guru.draw
setBackgroundH(green, red)

def guru = picStack(
    Picture {},
    square.thatsFilledWith(blue).thatsRotated(45),
    square.thatsFilledWith(yellow).thatsRotated(45).thatsTranslated(-40, 36),
    square.thatsFilledWith(green).thatsRotated(45).thatsTranslated(40, 36),
    circle1.thatsFilledWith(black).thatsTranslated(20, -22),
    circle1.thatsFilledWith(black).thatsTranslated(20, -62),
)

def square = Picture {
    repeat(4) {
        forward(51)
        right()
    }
}

def circle1 = Picture {
    circle(20)
}