Coder Social home page Coder Social logo

ewgpal's Introduction

ewgpal

Generates a palette image of EpicWorldGenerator biome colours.

ewgpal loads JSON biome configurations from the settings/biomes/*/ directories under the specified world directory and generates a palette image showing:

  • the biomeType setting - the group/category of the biome,
  • biome name (as the base name of the file without the .json suffix), and
  • biome colour, in two forms: as 6 hexadecimal digits preceded by # and as 3 base-10 numbers for red, green and blue components.

Where a biome contains multiple colours in the biomeColors setting, ewgpal will generate a colour patch for each listed colour.

Command Line Arguments

$ bin/ewgpal --help
usage: ewgpal.py [-h] -w WORLD_DIR [-o OUTPUT] [-v] [--debug]

Generate a palette image of biomes for EpicWorldGenerator.

optional arguments:
  -h, --help            show this help message and exit
  -w WORLD_DIR, --world-dir WORLD_DIR
                        The path to the world directory containing EWG
                        settings/ directory.
  -o OUTPUT, --output OUTPUT
                        The filename of the outputted palette image.
  -v, --view            Launch an image viewer to show the generated image.
  --debug               Enable debug logging.

Examples:
    /home/david/projects/python/ewgpal.orig/src/ewgpal.py -d ~/servers/pve-dev/world
        Generate ewgpal.png in the current working directory using the biomes
        configured in the specified world directory.

    /home/david/projects/python/ewgpal.orig/src/ewgpal.py -d ~/servers/pve-dev/world -o palette.png
        Save the palette as palette.png in the current directory. You can
        specify a full path to the output file if desired.

Sample Output

ewgpal produces the following palette image for the default biomes of EpicWorldGenerator (version 8.0.0-pre5, at the time of writing):

default-ewgpal.png

An alternative EWG configuration where each biome has only one distinct colour would be:

ewgpal.png

ewgpal's People

Contributors

totemo avatar

Watchers

 avatar  avatar  avatar  avatar

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.