imageinverter ~master
Light icon -> dark icon converter
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
imageinverter
Converts light icons to dark icons like Visual Studio.
Code example:
import imageinverter;
float bgLum = getBackgroundLuminosity(RGB8(0x23, 0x1F, 0x20));
foreach (ref RGB8 pixel; image)
pixel = pixel.transformRGB(bgLum);
Using as application:
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
- Registered by WebFreak
- ~master released 7 years ago
- WebFreak001/imageinverter
- public domain
- Copyright © 2017, webfreak
- Authors:
- Dependencies:
- color
- Versions:
-
1.0.0 2017-Aug-06 ~master 2017-Aug-06 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
8 downloads total
-
- Score:
- 0.9
- Short URL:
- imageinverter.dub.pm