958959960961962963964965966967968
* TODO: find a better solution for fix this issue * * While there is no space for adding a color into palette * return similar color cause return inexact color */ return palette.findSimilarColor(red, green, blue).getIndex(); } } } }