lwip icon indicating copy to clipboard operation
lwip copied to clipboard

added dominantColor function

Open MarkOtten opened this issue 8 years ago • 6 comments

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.

MarkOtten avatar Jun 10 '16 20:06 MarkOtten

Coverage Status

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

coveralls avatar Jun 16 '16 16:06 coveralls

Coverage Status

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

coveralls avatar Jun 16 '16 17:06 coveralls

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

kudos avatar Jun 19 '16 18:06 kudos

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.

MarkOtten avatar Jun 21 '16 16:06 MarkOtten

Coverage Status

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

coveralls avatar Jul 07 '16 01:07 coveralls

Coverage Status

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

coveralls avatar Jul 07 '16 01:07 coveralls