EyalAr / lwip

Light Weight Image Processor for NodeJS
MIT License
2.36k stars 230 forks source link

added dominantColor function #255

Open MarkOtten opened 8 years ago

MarkOtten commented 8 years ago

dominantColor(arg) returns the color that appears most often in an image, the specified integer argument is the number of pixels to skip per iteration, while iterating through an image.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.06%) to 98.366% when pulling ecc39bb45059c022c109c601752a1c2e179728d3 on MarkOtten:master into a65f6086a26c22736eb4d7cfa43c096afad5b5e8 on EyalAr:master.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.06%) to 98.366% when pulling 6d781516f81af2a54dc855321f344da0fa786943 on MarkOtten:master into a65f6086a26c22736eb4d7cfa43c096afad5b5e8 on EyalAr:master.

kudos commented 8 years ago

Shouldn't it be "dominantColor"? Love the change though, hopefully this lands in a release soon :)

MarkOtten commented 8 years ago

I was thinking "the color that dominates the picture" when I initially wrote the function, though that could have been the middle of the night lack of sleep more than anything else. I will update it to dominantColor and push it when I get a chance.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.06%) to 98.366% when pulling bee413e9efdb3810d9626d446cf965fb6256f72b on MarkOtten:master into a65f6086a26c22736eb4d7cfa43c096afad5b5e8 on EyalAr:master.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.06%) to 98.366% when pulling e6c898e38efc47c0ce9548cf38460f584d160193 on MarkOtten:master into a65f6086a26c22736eb4d7cfa43c096afad5b5e8 on EyalAr:master.