Module radiant_rs::blendmodes
[−]
[src]
A set of predefined blendmodes for use with Layer::set_blendmode()
.
[WIP] These are mostly placeholders for now.
Constants
ADD |
Adds source and destination. |
ALPHA |
Alpha-blends source into destination. |
COPY |
Replaces source into destination, overwriting color and alpha values. |
DARKEN |
Writes the minimum of source and destination into destination. |
LIGHTEN |
Writes the maximum of source and destination into destination. |
REVERSE_SUBTRACT |
Subtracts destination from source. |
SCREEN |
Overlays source and destination. |
SCREEN_MASK |
Overlays source and destination, masking the destination where source alpha is low. |
SQUARED |
Alpha-blends source into destination. |
SUBTRACT |
Subtracts source from destination. |
Functions
colorize |
Lika ALPHA but multiplies source with given color. |
fade |
Fades between source at 1.0 and destination at 0.0 |