If I design an objet in Blender, Do I state in Blender the colors to use or is it programmed somewhere else?

Or said another way, how does the printer know what color/extruder to use when printing?