cf_overlay_color¶
Category: graphics
GitHub: cute_color.h
Returns an overlay'd color, where the colors are multiplied or screen'd depending on the base color.
CF_Color cf_overlay_color(CF_Color base, CF_Color blend) { return cf_make_color_rgba_f(cf_overlay(base.r, blend.r), cf_overlay(base.g, blend.g), cf_overlay(base.b, blend.b), base.a); }
| Parameters | Description |
|---|---|
base |
The original color. |
blend |
The blend color to apply an overlay effect with. |
Remarks¶
This function attempts to mimic the Overlay Photoshop blend-layer mode.
The blend color is used to adjust colors in the base, while still preserving shadows and highlights of the base.