imageinverter 1.0.0

Light icon -> dark icon converter


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

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
Authors:
webfreak
Dependencies:
color
Versions:
1.0.0 2017-Aug-06
~master 2017-Aug-06
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 0 downloads total