Method: Chroma::ColorModes::Rgb#to_a

Defined in:
lib/chroma/color_modes.rb

#to_aArray<Numeric> Also known as: to_ary

Returns the values r, g, b, and a as an array.

Returns:

  • (Array<Numeric>)


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

def to_a
  [@r, @g, @b, @a]
end