Create a palette preview image by using a simple declarations
Find a file
2025-03-08 19:50:01 +01:00
prev_gen 7.0.0 2025-03-08 19:50:01 +01:00
CHANGELOG.md 7.0.0 2025-03-08 19:50:01 +01:00
example.json v6rc 2024-07-06 20:45:22 +02:00
example.py v6rc 2024-07-06 20:45:22 +02:00
example.toml v6rc 2024-07-06 20:45:22 +02:00
example.yaml v6 2024-12-04 22:59:07 +01:00
gruvbox.png 4.5.0 2023-11-23 11:20:56 +01:00
gruvbox.svg 5.0.0 2023-12-05 19:25:13 +01:00
LICENSE Initial commit 2023-01-20 17:43:57 +01:00
MIGRATION6.md Update MIGRATION6.md 2024-12-04 23:06:13 +01:00
pyproject.toml 7.0.0 2025-03-08 19:50:01 +01:00
README.md 7.0.0 2025-03-08 19:50:01 +01:00
test.py 7.0.0 2025-03-08 19:50:01 +01:00
WIKI.md wiki fix + gui mention 2024-12-15 17:16:38 +01:00

Create a palette preview image by using simple declarations

size files
python version
license releases
wiki changelog
ko-fi

Usage:

Consider using the new GUI instead.

  1. pip install prev_gen
  2. Open up the wiki to see how everything works
  3. Create a file based on instructions (or just edit the python, yaml, json, or toml examples)
  4. # in a python file
    from prev_gen import Previewer
    palette = [...]
    Previewer(palette)
    
    or use the cli tool prev_gen for conversions with no code

Migration to v6+

If you're using an older version of the library, pin the version to prev_gen<6.0.0 or upgrade by following the guide.

Example:

Inspired by the great Gruvbox theme, where even the preview is impressive
And so, below is the Gruvbox palette preview recreated with this app (click for selectable text)
example