Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lsystems

This is a "simple" L-system implementation in Java using Jaylib (Raylib bindings for Java).

By default, a hardcoded version of this L-system will be loaded. You may want to specify a custom L-system via. the program args.

lsystems <file>

Loading a custom L-system requires you to save your system into a text file. Again, the default model may be a good example for the syntax of the so-called .lsys files.

Y               # axiom (the initial state of the L-system)
X:XX            # rule nr. 1, X --> XX
Y:X[-Y][+Y]     # rule nr. 2, Y --> X[-Y][+Y]
-:-45           # rotation in degrees
+:45

For now, you are locked into using line segments. Other meanings for uppercase characters, such as "draw forward" or "moveforward" will be implemented pretty soon.

About

Visualizes Lindenmayer systems in Java using Raylib

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages