utils/color.h file

Contents

Color utils.

Functions

void color_brighten(GdkRGBA* src, double val)
Brightens the color by the given amount.
void color_brighten_default(GdkRGBA* src)
Brightens the color by the default amount.
void color_darken(GdkRGBA* src, double val)
Darkens the color by the given amount.
void color_darken_default(GdkRGBA* src)
Darkens the color by the default amount.
auto color_is_same(GdkRGBA* src, GdkRGBA* dest) -> bool
Returns whether the color is the same.
auto color_is_bright(GdkRGBA* src) -> bool
Returns if the color is bright or not.
auto color_is_very_bright(GdkRGBA* src) -> bool
Returns if the color is very bright or not.