Просмотр исходного кода

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

master
whut 1 год назад
Родитель
Сommit
0ad7b21c05
1 измененных файлов: 10 добавлений и 0 удалений
  1. +10
    -0
      README.md

+ 10
- 0
README.md Просмотреть файл

@@ -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


Загрузка…
Отмена
Сохранить