https://github.com/webfreak001/imageinverter
Light icon -> dark icon converter
https://github.com/webfreak001/imageinverter
Last synced: 6 months ago
JSON representation
Light icon -> dark icon converter
- Host: GitHub
- URL: https://github.com/webfreak001/imageinverter
- Owner: WebFreak001
- Created: 2017-08-06T18:29:40.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-06T18:30:08.000Z (almost 9 years ago)
- Last Synced: 2025-02-28T14:48:09.130Z (over 1 year ago)
- Language: D
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# imageinverter
Converts light icons to dark icons like Visual Studio.
Code example:
```d
import imageinverter;
float bgLum = getBackgroundLuminosity(RGB8(0x23, 0x1F, 0x20));
foreach (ref RGB8 pixel; image)
pixel = pixel.transformRGB(bgLum);
```
Using as application:
```sh
dub build --config=application
./imageinverter --suffix .dark --background "#231F20" *.svg *.png *.tga *.bmp *.jpg
# suffix defaults to ".backgroundcolor" (.231F20 in this case), background defaults to #231F20
# the suffix is appended like this: file.png -> filesuffix.png
```