Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is using chromasep clears background to black color? #33

Closed
iddm opened this issue Nov 19, 2017 · 4 comments
Closed

Why is using chromasep clears background to black color? #33

iddm opened this issue Nov 19, 2017 · 4 comments

Comments

@iddm
Copy link

iddm commented Nov 19, 2017

Why is using chromasep clears background to black color? I wanted to add it to my chain but found that it clears the background and I can't reset it back to my color.

@vrld
Copy link
Owner

vrld commented Nov 19, 2017

I am not sure I understand the problem. Can you give some example code where this issue happens?

@iddm
Copy link
Author

iddm commented Nov 20, 2017

This:

local moonshine = require("moonshine")
local effect = moonshine.chain(moonshine.effects.chromasep)

function love.load()
    love.graphics.setBackgroundColor(104, 136, 248)
end

function love.update(dt)
end
 
function love.draw()
    effect(function()
        love.graphics.circle("fill", 30, 30, 65)
    end)
end

results in clearing the background to the black color:

Image

And without chromasep:

local moonshine = require("moonshine")
local effect = moonshine.chain(moonshine.effects.chromasep)

function love.load()
    love.graphics.setBackgroundColor(104, 136, 248)
end

function love.update(dt)
end
 
function love.draw()
    -- effect(function()
        love.graphics.circle("fill", 30, 30, 65)
    -- end)
end

Image

@vrld vrld closed this as completed in 3a7ca1b Nov 20, 2017
@vrld
Copy link
Owner

vrld commented Nov 20, 2017

Should be fixed. Thanks for reporting!

@iddm
Copy link
Author

iddm commented Nov 20, 2017

@vrld thank you too for the response & fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants