This gives me a green blend from multiply. I think the formula is sourceRGB * destinationRGB / 255
Code: Select all
function love.draw()
-- green blend
love.graphics.setBlendMode("alpha") --Default blend mode
love.graphics.setColor(255, 255,0)
love.graphics.rectangle("fill", 50, 50, 50, 50)
love.graphics.setBlendMode("multiplicative")
love.graphics.setColor(0, 255, 255)
love.graphics.rectangle("fill", 75, 75, 50, 50)
end
Code: Select all
function love.draw()
-- green blend
love.graphics.setBlendMode("alpha") --Default blend mode
love.graphics.setColor(255, 255,0)
love.graphics.rectangle("fill", 50, 50, 50, 50)
love.graphics.setBlendMode("multiplicative")
love.graphics.setColor(0, 255, 255,0)
love.graphics.rectangle("fill", 75, 75, 50, 50)
end
EDIT: Well I found the formula for premultiplied and alpha blend mode: viewtopic.php?f=4&t=2136&start=40#p33507. What about the rest?