SFML community forums

Help => Graphics => Topic started by: Redys on October 22, 2016, 08:11:20 pm

Title: How to color and check color of area?
Post by: Redys on October 22, 2016, 08:11:20 pm
Hi,
I am wondering how to colour white screen (like here: http://2.bp.blogspot.com/-a86KHQsgpJA/ULWoEh9y4SI/AAAAAAAAA0c/zfuNoxd7j14/s1600/cat.jpg ) by impressing/left marks on the "floor" while moving a player. I want do some footstep for instance. After that (after round) I want to check in percentage how much of screen is painted and in which colour. Stats like these:
* 60% is still white
* 15% is green
* 20% is red
* 5% is blue
Possible colours will be defined beforehand and I will know them.