Search found 2 matches
- Sat Dec 07, 2024 8:58 pm
- Forum: Support and Development
- Topic: Using ImageData:setPixel for non rgba8 ImageData types
- Replies: 2
- Views: 964
- Sat Dec 07, 2024 12:32 pm
- Forum: Support and Development
- Topic: Using ImageData:setPixel for non rgba8 ImageData types
- Replies: 2
- Views: 964
Using ImageData:setPixel for non rgba8 ImageData types
Currently im using an imagedata object to store the state of a grid in my game, and the most convenient way for me to do this is by using the "r8" ImageData type. How do I use the setPixel method when it expects r, g, b and a parameters, but my ImageData object only needs an r argument? Th...