Computer Science, asked by MujjuBro, 6 months ago

Game Development question (pygame question).....I have a red rectangle which is being controlled by the player.... so when that red rect is being moved on the screen, it leaves the red color along its path...so when the red rect is moving, i want to find the % of area covered in red in real time...HOW DO I DO IT, PLEASE SHOW ME THE CODE? I have already looped through all the pixels of the screen but i can't figure out to find the pixels in red and calculate the % in real time?

Answers

Answered by rajansharma46
1

Answer:

follow ke on instagram username

@codebytez

Found a Best programming page @codebytez for python html css c C++ JAVAA HURRY UP ⏩ @CODEBYTEZ . We Guide beginner's to become better & professional . Our all post with the example & source code ❤️ @codebytez

Similar questions