i need something that will count the pixels as i draw
lets say i have a black canvas 100x100 pixels (=10000 pixels altogether) and if make a white dot it will tell me -
#000000=99999px
#FFFFFF=1px
probably not very difficult if you are a programmer...(?) i only need it to work with two colours.
dont even know what to search for or where to look

a coding forum maybe?
dont ask me what i need it for - still developing the idea - difficult to explain.
__________________...