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

Same brightness for all pixel in monochrome animation #10

Open
R3tr0BoiDX opened this issue Oct 21, 2022 · 0 comments
Open

Same brightness for all pixel in monochrome animation #10

R3tr0BoiDX opened this issue Oct 21, 2022 · 0 comments

Comments

@R3tr0BoiDX
Copy link
Collaborator

When an animation is monochrome, it's pixels can be colored in a randomly chosen color, to make everything more colorful (using the -c argument). However, the color that is used to overwrite isn't adjusting to the brightness of the given color within the frame. Right now it's flat overwriting the same color to all pixels, that just aren't black. The a solution would be, to calculate the brightness of the pixel and applying that to the random color for this pixel. Use the method getLuminance() for that.

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

1 participant