Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
color.h File Reference

Color utils. More...

#include "gtk_wrapper.h"
Include dependency graph for color.h:

Go to the source code of this file.

Macros

#define COLOR_DEFAULT_BRIGHTEN_VAL   0.1f
 

Functions

void color_brighten (GdkRGBA *src, float 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, float val)
 Darkens the color by the given amount.
 
void color_darken_default (GdkRGBA *src)
 Darkens the color by the default amount.
 
bool color_is_same (GdkRGBA *src, GdkRGBA *dest)
 Returns whether the color is the same.
 
bool color_is_bright (GdkRGBA *src)
 Returns if the color is bright or not.
 
bool color_is_very_bright (GdkRGBA *src)
 Returns if the color is very bright or not.
 
bool color_is_very_very_bright (GdkRGBA *src)
 Returns if the color is very very bright or not.
 
bool color_is_very_dark (GdkRGBA *src)
 Returns if the color is very dark or not.
 
bool color_is_very_very_dark (GdkRGBA *src)
 Returns if the color is very very dark or not.
 
void color_get_opposite (GdkRGBA *src, GdkRGBA *dest)
 
float color_get_brightness (GdkRGBA *color)
 
float color_get_darkness (GdkRGBA *color)
 
void color_morph (GdkRGBA *a, GdkRGBA *b, float amt, GdkRGBA *result)
 Morphs from a to b, depending on the given amount.
 

Detailed Description

Color utils.

Definition in file color.h.