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