def interpret_color(color)
      if color.is_a? String
        # Turns RRGGBB into BBGGRR for hex conversion.
        color = color[-2..-1] << color[2..3] << color[0..1]
        color = color.to_i(16)
      end

      color
    end
def interpret_color(color)
      if color.is_a? String
        # Turns RRGGBB into BBGGRR for hex conversion.
        color = color[-2..-1] << color[2..3] << color[0..1]
        color = color.to_i(16)
      end

      color
    end
Converts the input to an RGB color represented by an integer

 @param [String, Integer] color Can be a RRGGBB hex string or an integer
 @return [Integer]

 @example
   interpret_color(255)      # => 255
   interpret_color("ABCDEF") # => 15715755