##### Views

- Page
- Discussion
- View source
- History

# love.graphics.setBlendMode

Available since LÖVE 0.2.0
This function is not supported in earlier versions.

Sets the blending mode.

## Function

### Synopsis

love.graphics.setBlendMode( mode )

### Arguments

`BlendMode mode`
  The blend mode to use.

### Returns

Nothing.

## Example

function love.load()
love.graphics.setBackgroundColor(54, 172, 248)
end
function love.draw()
love.graphics.setBlendMode("alpha") --Default blend mode
love.graphics.setColor(230, 44, 123)
love.graphics.rectangle("fill", 50, 50, 100, 100)
love.graphics.setColor(12, 100, 230)
love.graphics.setBlendMode("multiplicative")
love.graphics.rectangle("fill", 75, 75, 125, 125)
end

## See Also

- love.graphics
- love.graphics.getBlendMode
- BlendMode

## Other Languages

Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – Tiếng Việt – 한국어
More info

Retrieved from "https://www.love2d.org/wiki/love.graphics.setBlendMode"
Categories: Templates | Functions

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties