YOUR ACCOUNT

This article describes how to implement blending in the Map Script and Curve Script components.

Each blending mode has its own function, e.g. blend_normal(), blend_multiply() etc. Each of these functions accepts two RGBA colors to blend, opacity percentage and a HDR flag (not all of the modes support HDR though), and returns four return values representing the resulting RGBA color. Here's an example:

Blend Modes Script Example

Blend Modes Script Output

Script API – Blending Modes.ffxml