Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_widgets.c
| Context not available. | |||||
| #include "UI_interface.h" | #include "UI_interface.h" | ||||
| #include "UI_interface_icons.h" | #include "UI_interface_icons.h" | ||||
| #include "IMB_colormanagement.h" | |||||
| #include "interface_intern.h" | #include "interface_intern.h" | ||||
| Context not available. | |||||
| float width = rect->xmax - rect->xmin; | float width = rect->xmax - rect->xmin; | ||||
| float height = rect->ymax - rect->ymin; | float height = rect->ymax - rect->ymin; | ||||
| /* find color luminance and change it slightly */ | /* find color luminance and change it slightly */ | ||||
| float bw = rgb_to_bw(col); | float bw = IMB_colormanagement_get_luminance(col); | ||||
| bw += (bw < 0.5f) ? 0.5f : -0.5f; | bw += (bw < 0.5f) ? 0.5f : -0.5f; | ||||
| Context not available. | |||||