Code Sketch
art
Category: Art
clear()
//showAxes()
//showGrid()
setBackgroundH(green, blue)
def circle1(size: Int)= Picture {
circle(size)
}
def square(size: Int)= Picture{
repeat(4) {
forward(size)
right()
}
}
def traingle(size: Int)= Picture{
repeat(3) {
forward(size)
turn(360/3)
}
}
guru.draw
def guru = picStack(
Picture {},
circle1(40).thatsFilledWith(Color(255, 204, 0)).thatsTranslated(-50,-140),
circle1(40).thatsFilledWith(Color(255, 204, 0)).thatsTranslated(-50,-140).withFlippedX,
circle1(100).thatsFilledWith(yellow).thatsTranslated(100,-50),
circle1(60).thatsFilledWith(Color(255, 255, 102)).thatsTranslated(60,100),
square(28).thatsFilledWith(blue).thatsTranslated(-14,55),
traingle(23).thatsFilledWith(black).thatsTranslated(-25, 110),
traingle(23).thatsFilledWith(black).thatsTranslated(-25, 110).withFlippedX,
traingle(23).thatsRotated(30).thatsFilledWith(white).thatsTranslated(10,90),
circle1(30).thatsFilledWith(green).thatsTranslated(-60,0),
circle1(30).thatsFilledWith(green).thatsTranslated(-60,0).withFlippedX,
)