Code Sketch


art
By: Guruprasad Sawant
Category: Art
clear()
//showGrid()
//showAxes()
setBackgroundH(pink, red)

guru.thatsRotated(90).draw


def guru = picStack(
    Picture {},
    circle1(30).thatsFilledWith(white).thatsTranslated(150, 50),
    circle1(30).thatsFilledWith(white).thatsTranslated(150, -50),
    circle1(20).thatsFilledWith(black).thatsTranslated(128, 40),
    circle1(20).thatsFilledWith(black).thatsTranslated(128, -40),
    circle1(30).thatsFilledWith(blue).thatsTranslated(-30, 90),
    circle1(30).thatsFilledWith(blue).thatsTranslated(-30, -90),
    circle1(95).thatsFilledWith(green).thatsTranslated(0, 0),
    circle1(77).thatsFilledWith(yellow).thatsTranslated(120, 0),
    circle1(35).thatsFilledWith(yellow).thatsTranslated(-150, 50),
    circle1(35).thatsFilledWith(yellow).thatsTranslated(-150, -50),
    circle1(21).thatsFilledWith(white).thatsTranslated(95, 30),
    circle1(21).thatsFilledWith(white).thatsTranslated(95, -30),
    circle1(15).thatsFilledWith(black).thatsTranslated(45, 0),
    circle1(10).thatsFilledWith(red).thatsTranslated(0, 0),
    circle1(9).thatsFilledWith(black).thatsTranslated(70, 28),
    circle1(9).thatsFilledWith(black).thatsTranslated(70, -28),
)

def circle1(size: Int) = Picture {
    circle(size)
}