Kolam is a class of patterns drawn using lines, curves and dots. Made of rice flour or chalk, Kolams are a welcome sight in the courtyards of homes in South India.
An L-system or Lindenmayer system is a parallel rewriting system and a type of formal grammar. An L-system consists of an alphabet of symbols that can be used to make strings, a collection of production rules that expand each symbol into some larger string of symbols, an initial "axiom" string from which to begin construction, and a mechanism for translating the generated strings into geometric structures. L-systems differ from Chomsky grammars in that all variables are replaced in each step, and not just one. For example
Axiom (Initial State): G G
Production Rule: G -> g G G f
First Derivation: g G G f g G G f
Second Derivation: g g G G f g G G f f g g G G f g G G f f
Variables: F,A,B
Axiom: FBFBFBFB
Rules:
A->AFBFA
B->AFBFBFBFA
Where,
Symbol | Meaning |
---|---|
F | Move forward 20 units |
A | Draw an arc of radius 20 units upto 90 degrees |
B |
Calculate forward units l = 10/sqrt (2) Move forward l Units Draw an arc of radius l units upto 270 degrees Forward l Units |
Wikipedia
Graphical modeling
Research Paper 1
Research Paper 2
Example 1
Example 2
Example 3
This project was presented at PySangamam 2018
- If you ❤️ my project, please give it a ⭐ .
- Feel free to give me more grammars for Kolam generation