# dxGetBlendMode (Client)

> Returns the blend mode of the 2D `dx` functions.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Screen drawing
- **URL**: https://wiki.mymp.gg/en/dxGetBlendMode

## Syntax

```lua
string dxGetBlendMode()
```

## Returns

`blend`, `add`, `modulate_add` or `overwrite`.

## Example

```lua
local previous = dxGetBlendMode()
dxSetBlendMode("add")
dxDrawRectangle(0, 0, 100, 100, tocolor(255, 120, 0, 80))
dxSetBlendMode(previous)
```

## See also

- [dxSetBlendMode (Client)](https://wiki.mymp.gg/en/dxSetBlendMode.md): Chooses how the next 2D dx functions mix with what is already drawn.
