Figure Asymptote animations -- 013
🔗This picture comes from the Asymptote gallery of topic animations
Inspiration.
Show animations/fig0140.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Animation
Tags : #L-System | #Animation
import Lsystem; import animate; animation A = animation(global=false); size(16cm, 12cm); string[][] rules={{"A", "[+BFA][-BFA][^BFA][&BFA]"}, {"B", "'(0.7071)"}}; Lsystem3 plant=Lsystem3("A", rules, La=45); plant.iterate(5); tree3 g=plant.tree3(); for (int angle=0; angle < 360; angle += 5) { currentprojection=orthographic(rotate(angle, Z)*(10, 10, 6)); save(); for (int i : g.keys) draw((path3)g[i], linewidth(bp)+(g[i].depth > 3 ? brown : 0.8*green)); A.add(); restore(); } A.movie(BBox(3mm, Fill(yellow+blue)));