Giter Club home page Giter Club logo

kolam-rangoli-java-script-generation's Introduction

License: GPL v3

Kolam ⌘

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.

Lo Behold!

alt tag

L-System

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

L-System Application

Variables: F,A,B 
Axiom: FBFBFBFB
Rules:
 A->AFBFA 
 B->AFBFBFBFA 

Where,

SymbolMeaning
F Move forward 20 units
ADraw 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

References

Wikipedia
Graphical modeling
Research Paper 1
Research Paper 2
Example 1
Example 2
Example 3

Lightning Talk

This project was presented at PySangamam 2018

Support Me!

  • If you ❤️ my project, please give it a ⭐ .
  • Feel free to give me more grammars for Kolam generation

kolam-rangoli-java-script-generation's People

Contributors

dhanya-abhirami avatar

Watchers

saktheeswaranswan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.