Courses
Sketches
Code a Pookkalam
Grants
Support
About
Login
Sketches
0
galaxy of stars
By
Sahaja
Run
# inspired by 'New Sketch' by Nadeem a=color(r=0,g=0,b=50) sky=rectangle(0,0,300,300,fill=a) show(sky) p1 = point(x=-25, y=0) p2 = point(x=0, y=100) p3 = point(x=25, y=0) p4 = point(x=0, y=-100) shape1 = polygon([p1, p2, p3, p4], fill="silver", stroke="none") shape2 = shape1 | rotate(45) shape3 = shape1 | rotate(90) shape4 = shape1 | rotate(135) shapefinal = shape1 + shape2 + shape3 + shape4 shape = shapefinal| scale(0.25) | translate(y=100) | repeat(100, rotate(30) | scale(0.96)) show(shape)
New Comment
×
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login