lwip
lwip copied to clipboard
added dominantColor function
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.
Coverage increased (+0.06%) to 98.366% when pulling ecc39bb45059c022c109c601752a1c2e179728d3 on MarkOtten:master into a65f6086a26c22736eb4d7cfa43c096afad5b5e8 on EyalAr:master.
Coverage increased (+0.06%) to 98.366% when pulling 6d781516f81af2a54dc855321f344da0fa786943 on MarkOtten:master into a65f6086a26c22736eb4d7cfa43c096afad5b5e8 on EyalAr:master.
Shouldn't it be "dominantColor"? Love the change though, hopefully this lands in a release soon :)
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.
Coverage increased (+0.06%) to 98.366% when pulling bee413e9efdb3810d9626d446cf965fb6256f72b on MarkOtten:master into a65f6086a26c22736eb4d7cfa43c096afad5b5e8 on EyalAr:master.