Giter Club home page Giter Club logo

l-systems's Introduction

L-Systems

L-System engine written in C.

Examples

Image of the Dragon Curve Image of the Koch Curve Image of the Sierpinski Triangle GIF of a tree growing Image of a fractal plant Image of a tree

Configs can be found in the examples folder.

Compiling

To compile the project you will need SDL2 and SDL2_gfx installed and configured in pkg-config.

After that run

git clone https://github.com/Denloob/l-systems.git
cd l-systems
make

For more information please see the Makefile.

Running

After compiling, you can find the binary at ./bin/lSystem.

You can also use

make run

To both compile and run the L-system.

Using a Custom L-System

You can change/create L-systems by changing the functions in config.c.

The config_create function will create all the configuration for the L-system.

This config will later be passed to config_execute which executes the L-system described by the config and draws it.

After the function exits, config_destroy will be called to clean-up the memory used by the config.

l-systems's People

Contributors

denloob avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

marianahol

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.