robo-painter is a simple program to procedurally generate random, grayscale images with two parts:
- a picture-generation language (written in C)
- a library for genetic programming in Lua.
Currently, only part 1 is complete.
The bulk of the code is contained in liblang.c which holds the procedures and data structures related to the language. Perhaps the most intersting feature of the language is that any string of LANG_WORDs (as defined in liblang.h) is a valid expression in the language, which allows them to be easily manipulated, generated, or otherwise mutated.
The following has been tested on Ubuntu 18.04 LTS:
sudo apt-get install git make gcc lua5.1 liblua5.1-devgit submodule init && git submodule updatesudo apt-get install libgd-devto get the dependencies, followed bysudo apt-get remove libgd-dev(unfortunately, installinglibgd-devdoesn't appear sufficient to getlua-gdto work on its own)- Download the latest release of
libgdfrom https://libgd.github.io/pages/downloads.html and install it with the usual./configure && make && sudo make installdance - Finally,
cd lib/lua-gd && make
To run, type make run for a fixed demo or lua5.1 robo.lua for a random seed, and check images/.
This project is released into the public domain with the help of CC0.
See COPYING for more information.
