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

Сan't erase 1 pixel #13

Open
fortey opened this issue Nov 25, 2023 · 2 comments
Open

Сan't erase 1 pixel #13

fortey opened this issue Nov 25, 2023 · 2 comments

Comments

@fortey
Copy link

fortey commented Nov 25, 2023

drawpixels.pixel(self.buffer_info, self.touch_pos.x, self.touch_pos.y, 0, 0, 0, 0) doesn't work

@AGulev
Copy link
Owner

AGulev commented Nov 25, 2023

could you pls provide a test project?

@Morgerion
Copy link

Indeed, it does not work, since if alpha==0 then the pixel is not recorded. This follows from the code of the mixpixel() function.
It would be nice to have a function like pixel_raw() that just writes RGBA without any alpha channel checks.
I use this to fill technical textures where the alpha channel is just one of the data layers.

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

3 participants