---
url: https://cri-middleware.github.io/SSPlayerForWeb/api/@spritestudio/ssplayer-core/functions/ssBlendMode.md
---
# Function: ssBlendMode()

> **ssBlendMode**(`blendType`): [`SSBlendMode`](../enumerations/SSBlendMode.md)

Defined in: [src/BlendState.ts:90](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssplayer-core/src/BlendState.ts#L90)

Which of the seven states a `BlendType` is drawn with.

Seven of the twelve map to a state of their own. The remaining five have no
fixed-function equivalent and are approximated: `Mulalpha` and `Mul2` fall
back to `Mul`, `Screen2` to `Screen`, and `Div2` / `Overlay2` to `Mix` — the
same fallback an unrecognised value takes.

## Parameters

### blendType

`number`

## Returns

[`SSBlendMode`](../enumerations/SSBlendMode.md)
