Method: Colordom::Image#kmeans

Defined in:
lib/colordom/image.rb

#kmeans(max_colors) ⇒ Array<Color>

Get dominant colors using k-means clustering.

Parameters:

  • max_colors (Integer)

Returns:



# File 'lib/colordom/image.rb', line 22