Code Sketch
something-new
By: Nitin Mishra
Category: Art
0


0




clear() setBackground(black) setSpeed(fast) val ang = 115 val repCount = mathx.lcm(360, ang) / ang def shape() { repeat(repCount) { forward(100) right(ang) } } setPosition(-220, -50) setPenThickness(1) def block() { setPenColor(randomColor.fadeOut(0)) shape() hop(70) } def block2() { repeat(2) { block() } hop(-70) right() hop(70) left() } def block3() { repeat(3) { block2() } } repeat(4) { block3() left() hop(20) right() hop(80) right() }





Your Comment:





Login to post a comment