code: def apply_chromatic_adaptation_on_color(color, targ_illum, adaptation='bradford'):
      
      xyz_x = color.xyz_x
      xyz_y = color.xyz_y
      xyz_z = color.xyz_z
      orig_illum = color.illuminant
      targ_illum = targ_illum.lower()
      observer = color.observer
      adaptation = adaptation.lower()
  
      # Return individual X, Y, and Z coordinates.
      color.xyz_x, color.xyz_y, color.xyz_z = apply_chromatic_adaptation(
          xyz_x, xyz_y, xyz_z, orig_illum, targ_illum,
          observer=observer, adaptation=adaptation)
      color.set_illuminant(targ_illum)
  
      return color
docs: Convenience function to apply an adaptation directly to a Color object.