Checking if background is entirely painted?
in
Programming Questions
•
2 years ago
Hi,
I'm wondering how you'd go about if you want to check whether there are any white pixels on the screen? Like, say I'm doing a drawing program (well, actually more of a game thing) and I want the game to check whether the entire screen has been painted (at which point something would happen).
I bet there's some thing where you can check each pixel on the screen but I was also wondering whether it'd be a valid approach to make a two dimensional array containing information on the color of each pixel and iterate through it to check whether there are any white pixels left?
I'm an Actionscript 2 programmer trying to switch over to processing in a much too short period because of a really cool processing game jam that I was invited too this weekend :)
Would appreciate any help (urgently) a lot.
I'm wondering how you'd go about if you want to check whether there are any white pixels on the screen? Like, say I'm doing a drawing program (well, actually more of a game thing) and I want the game to check whether the entire screen has been painted (at which point something would happen).
I bet there's some thing where you can check each pixel on the screen but I was also wondering whether it'd be a valid approach to make a two dimensional array containing information on the color of each pixel and iterate through it to check whether there are any white pixels left?
I'm an Actionscript 2 programmer trying to switch over to processing in a much too short period because of a really cool processing game jam that I was invited too this weekend :)
Would appreciate any help (urgently) a lot.
1