Yarn segment dyeing and coloring device