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

Canvas::get_pixel: Use a virtual colorspace #2931

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Vankata453
Copy link
Member

@Vankata453 Vankata453 commented Apr 29, 2024

Virtual colorspaces, consisting of colored shapes, can now be used for the get_pixel API, instead of relying on the GPU.

TODO:

  • Detect, or allow to specify lightsprites as circles with a radius and border radius, making the light check more visually correct.
  • Divide Spotlight light sprite into two and draw them separately, to achieve a more exact light check by specifying a circle radius for each.
  • Make sure the shape of every lightsprite, needed to be detected by the get_pixel API, is being added into the LIGHTSPRITES colorspace.
  • More extensive testing.

Fixes #2661. Fixes #1939 (theoretically, should also be tested).

Virtual colorspaces, consisting of colored shapes, can now be used for the `get_pixel` API, instead of relying on the GPU.

**TODO:**

[ ] Detect, or allow to specify lightsprites as circles with a radius and border radius, making the light check more visually correct.
[ ] Make sure the shape of every lightsprite, needed to be detected by the `get_pixel` API, is being added into the `LIGHTSPRITES` colorspace.
[ ] More extensive testing.

Fixes #2661. Fixes #1939 (theoretically, should also be tested).
@Vankata453 Vankata453 added status:in-progress Progress has been done, but more is intended be done category:code type:bugfix Pull Requests that fix bugs. labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:code status:in-progress Progress has been done, but more is intended be done type:bugfix Pull Requests that fix bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Magic Tiles affected by light intensity Magic Blocks Rublight/Ambient light inconsistency
1 participant