Selaa lähdekoodia

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

master
whut 1 vuosi sitten
vanhempi
commit
0ad7b21c05
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. +10
    -0
      README.md

+ 10
- 0
README.md Näytä tiedosto

@@ -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…
Peruuta
Tallenna