Code Sketch


art2023
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),
    traingle1.thatsFilledWith(white).thatsTranslated(0, -135),
    traingle1.thatsFilledWith(white).thatsTranslated(0, -135).withFlippedX,
    circle1.thatsFilledWith(black).thatsTranslated(-80, -62),
    circle1.thatsFilledWith(black).thatsTranslated(120, -62),
    read1.thatsTranslated( -300, -150).thatsFilledWith(blue),
)

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

def circle1 = Picture {
    circle(20)
}

def traingle1 = Picture {
    repeat(3) {
        forward(50)
        right(120)
    }

}

def read1 = Picture {
    write (" Hello  ! Happy New Year 2023 " )
}