imageinverter

Undocumented in source.

Members

Aliases

HSLf
alias HSLf = HSL!float
Undocumented in source.

Functions

getBackgroundLuminosity
float getBackgroundLuminosity(RGB8 bg)

Returns the luminosity of a background color. Transformed icons use this as base for color transformation. Try #231F20 as starting point.

transformLuminosity
float transformLuminosity(float lum, float bgLum)

Converts a light luminosity using bgLum to a dark luminosity

transformRGB
RGB8 transformRGB(RGB8 color, float bgLum)

Converts a light color using bgLum to a dark color.

transformTextual
string transformTextual(string svg, float bgLum)

Utility function to replace all text color occurences (#000000) with transformed colors.

Meta