Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 793 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 793 Bytes

Pixel count

Counts the number of pixels of one color in a PNG image encoded in RBG. Preferably with just one IDAT chunk.

Built with

gcc pixel-count.c -lz [-lm]

lm flag is optional, you might or might not need to link the math library

Resources (in no particular order):

Checked solution with https://townsean.github.io/canvas-pixel-color-counter/