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

(love 11.0) Use normalized colors; fix broken sketch and filmgrain #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

idbrii
Copy link

@idbrii idbrii commented Dec 30, 2021

Update to love 11.0 colour format where all colours are normalized in [0,1].

Also fix some invalid indexing.

While some effects will continue to work so long as users pass 255 color values (desaturate, scanlines, vignette), the others are broken in love 11.0 without this change (sketch, filmgrain).

This change would break behaviour for use with love 0.10. Not sure how you want to deal with that. Maybe make a pre-11.0 tag?

sketch

image

Completely broken -- nearly no pixels modified.

filmgrain

image

Very broken -- few grains visible.

Test

I flipped through the effects in the demo and they all seem to work now (or at least have some effect).

Update to love 11.0 colour format where all colours are normalized.
Lua tables start at 1.
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

Successfully merging this pull request may close these issues.

1 participant