Skip to content

juangallostra/Landscape-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Landscape-generator

Python 2D landscape generator using midpoint displacement.

To read an in depth explanation visit this blog entry.

Usage

  1. Clone this repository: $ git clone https://github.com/juangallostra/Landscape-generator.git
  2. Install dependencies (it is recommended to do so in a virtual environment): $ pip install -r requirements.txt
  3. 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.)

Examples

Default theme

Snow theme

Grass theme

City theme

Example landscape

Moon theme

TO DO

  • 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)

About

Landscape generator using midpoint displacement

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages