Python 2D landscape generator using midpoint displacement.
To read an in depth explanation visit this blog entry.
- Clone this repository:
$ git clone https://github.com/juangallostra/Landscape-generator.git
- Install dependencies (it is recommended to do so in a virtual environment):
$ pip install -r requirements.txt
- Execute the script:
$ python landscape_generator.py
or, alternatively and to change the color palette,$ python landscape_generator -t [THEME]
where[THEME]
is a word indicating the desired color theme (river
,mountain
,sun
,moon
, etc.)
- Let the user play with the parametres of the landscape
- Command line arguments / GUI
- It would be nice to have a tool to preview and organize the selected colors (The obtained classes from the search now implement a method,
draw()
, which draws the Pattern, Color or Palette it is called on)