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: color.rb
    path of file: ./repos/psd.rb/lib/psd
    
    the code of the file until where you have to start completion: class PSD
  # Various color conversion methods. All color values are stored in the PSD
  # document in the color space as defined by the user instead of a normalized
  # value of some kind. This means that we 
    
    def cmyk_to_color(c, m, y, k)
      r = 1 - (c * (1 - k) + k) * 255
      g = 1 - (m * (1 - k) + k) * 255
      b = 1 - (y * (1 - k) + k) * 255

      r = [0, r, 255].sort[1]
      g = [0, g, 255].sort[1]
      b = [0, b, 255].sort[1]

      rgb_to_color r, g, b
    end