Method: Chroma::ColorModes::Rgb#to_a
- Defined in:
- lib/chroma/color_modes.rb
#to_a ⇒ Array<Numeric> Also known as: to_ary
Returns the values r
, g
, b
, and a
as an array.
15 16 17 |
# File 'lib/chroma/color_modes.rb', line 15 def to_a [@r, @g, @b, @a] end |