Code Sketch
Gen-art created by Aditya Tomar
By: Anusha Pant
0


0




cleari() size(900, 900) val pic1 = Picture { def shape() { setFillColor(cm.darkOrange) setPenColor(cm.lavenderBlush) setPenThickness(4) right(90, 100) right(90) right(90, 100) right(90) right(90, 100) right(90, 100) right(90) right(90, 100) right(90) left(90, 100) left(90) left(90, 100) left(90) left(180) right(90, 100) right(90) right(90, 100) hop(200) right(90) } def as() { repeat(4) { shape() } left(90, 100) } as() repeat(3) { as() } right(180) right(90, 100) } val pic2 = Picture { setPenFont(Font("Noto Serif", 70, BoldFont | ItalicFont)) setPenColor(darkGray) write("Aditya Tomar") } val gap = Picture { setPenColor(noColor) repeat(4) { forward(100) right(90) } } val pic = scale(0.85) -> picColCentered(pic1) drawCentered(pic)





Your Comment:





Login to post a comment