<jupyter_start><jupyter_text>We've seen how to generate textures. Another way to create layers is by generating them with [Lindenmeyer Systems](https://bitaesthetics.com/posts/fractal-generation-with-l-systems.html).The `penkit.fractal` module has some Lindenmeyer Systems built-in for easy plotting.<jupyter_code>from penkit.fractal import tree, hilbert_curve, flowsnake
from penkit.preview import show_layer
show_layer(tree(5))
show_layer(hilbert_curve())
show_layer(flowsnake())<jupyter_output><empty_output><jupyter_text>You can also use the `penkit.fracta.l_system` module to experiment with your own L-Systems. Here's a [Sierpinski triangle](https://en.wikipedia.org/wiki/L-systemExample_5:_Sierpinski_triangle)<jupyter_code>from penkit.fractal.l_systems import l_system
show_layer(l_system('F-G-G', {'F': 'F-G+F+G-F', 'G': 'GG'}, 5, 120))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12228571428571429, 'fraction_numerical': 0.006857142857142857, 'mean_word_length': 7.76, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '444701', 'license': 'MIT', 'n_tokens_mistral': 326, 'n_tokens_neox': 308, 'n_words': 66, 'path': 'tutorial/02-Fractals.ipynb', 'repo_name': 'shab-bahmanyar/penkit', 'size': '875'}