Method: Chroma::ColorModes::Hsv#to_a

Defined in:
lib/chroma/color_modes.rb

#to_aArray<Numeric> Also known as: to_ary

Returns the values h, s, v, and a as an array.

Returns:

  • (Array<Numeric>)


15
16
17
# File 'lib/chroma/color_modes.rb', line 15

def to_a
  [@h, @s, @v, @a]
end