Sfoglia il codice sorgente

hey let's add an example so people can see how to use the damn thing

master
whut 1 anno fa
parent
commit
0ad7b21c05
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. +10
    -0
      README.md

+ 10
- 0
README.md Vedi File

@@ -5,6 +5,16 @@ Color arguments are in the form of "hue,chroma,luminance" for background and "hu

The script will do its best to make sure everything is readable. With Base16, for instance, it tries to keep a contrast ratio of 7:1 between the foreground and background colors, while trying to stay above 3:1 for foreground and highlight, the last 8 colors (the "hues") and highlight, and the "dark" foreground and background. Usually it does a good job. But with the way it handles contrast, things get unreadable with some values (see "On luminance options").

## Example

```
./acid16.py 0.6,0.25,0.005 0.6,0.5 0.0,0.0
```
This creates a color scheme with:
- A dark bluish background (hue 0.6, chroma 0.25, luminance 0.005)
- An accent color with that same hue but more saturation (hue 0.6, chroma 0.5)
- Some shade of gray for the foreground color (hue 0.0, chroma 0.0). In this case it'll be a light gray since the background is dark.

## Prerequisites

- Python 3


Loading…
Annulla
Salva