Description
The BlendMode.Multiply
field is a member of the BlendMode
enumeration within the Sandbox namespace. This blend mode is used in the UI system to determine how colors are combined when rendering graphics. The Multiply
blend mode multiplies the color values of the source and destination, resulting in a darker image. This is useful for creating shadows or darkening images.
Usage
To use the BlendMode.Multiply
, you can set it as a property of a UI component or any other rendering system that supports blend modes. This will affect how the component's colors are blended with the background or other elements.
Example
// Example of setting a blend mode for a UI component
var myComponent = new UIComponent();
myComponent.BlendMode = BlendMode.Multiply;
// This will render the component using the Multiply blend mode, darkening the colors
// based on the background or other overlapping elements.