Class: Borealis
- Inherits:
-
Object
- Object
- Borealis
- Defined in:
- lib/borealis.rb,
lib/borealis/color.rb,
lib/borealis/kmeans.rb,
lib/borealis/cluster.rb,
lib/borealis/version.rb,
lib/borealis/image_converter.rb
Defined Under Namespace
Classes: Cluster, Color, ImageConverter, KMeans
Constant Summary collapse
- VERSION =
"0.0.2"
Instance Attribute Summary collapse
-
#colors ⇒ Object
readonly
Returns the value of attribute colors.
Instance Method Summary collapse
- #hexes ⇒ Object
-
#initialize(file, options = {}) ⇒ Borealis
constructor
A new instance of Borealis.
- #rgbs ⇒ Object
Constructor Details
Instance Attribute Details
#colors ⇒ Object (readonly)
Returns the value of attribute colors.
8 9 10 |
# File 'lib/borealis.rb', line 8 def colors @colors end |
Instance Method Details
#hexes ⇒ Object
16 17 18 |
# File 'lib/borealis.rb', line 16 def hexes @colors.map(&:hex) end |
#rgbs ⇒ Object
20 21 22 |
# File 'lib/borealis.rb', line 20 def rgbs @colors.map(&:rgb) end |