pget seems to use the camera which is kind of strange I think...
This does not do what it looks like it does if camera() is used:
Manual correction (if cx and cy are camera position):
Is this a known issue or am I misinterpreting something here?
Yeah, it does seem kind of strange! It behaves that way to be consistent with pset(), which in turn should be consistent with the other draw functions.
The problem is that they could be both used meaningfully in world space (e.g. particles distorting the background around them in a scrolling platformer) or in screenspace (a post-frame filter that shuffles some random pixels around).
I figured that by the time you're reading pixels in screenspace, you probably don't care about the camera anymore and have used camera() after your scrolly draw operations. This is very hypothetical though -- I couldn't think of a clear example.
Out of curiosity, what are you using it for? (if it's not hard to summarize here)
[Please log in to post a comment]