You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: health_color_calculator.rb
    path of file: ./repos/RTanque/lib/rtanque/gui/bot
    
    the code of the file until where you have to start completion: module RTanque
  module Gui
    class Bot
      class HealthColorCalculator

        # different 
    
        def color_as_rgb
          if health > 50
            percentage = ((100 - health) / 50)
            color_between FULL_HEALTH_COLOR, MEDIUM_HEALTH_COLOR, percentage
          else
            percentage = ((50 - health) / 50)
            color_between MEDIUM_HEALTH_COLOR, LOW_HEALTH_COLOR, percentage
          end