Skip to content

cf_overlay

Category: graphics
GitHub: cute_color.h


Returns an overlay blend, where the colors are multiplied or screen'd depending on the base color.

float cf_overlay(float base, float blend)
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.

CF_Color
cf_hue
cf_overlay_color
cf_softlight_color
cf_softlight