def to_ints(hex) r = hex [1..2] g = hex [3..4] b = hex [5..6] ints = [] [r, g, b].map do |s| s.hex end end