How's this:
In the first round, everyone looks around to see what the color on everyone else's head is. Afterwards, their attention shifts to specifically the people with red balls on their heads, because they want to see whether or not they'll move when the master tells them to. The people with red balls on their heads notice that people are looking at them, and deduce that they must have a red ball on their head. They look at all the people with red balls and move when they move.
I really don't know how else you can do this without determining the number of balls or something like that.
In the first round, everyone looks around to see what the color on everyone else's head is. Afterwards, their attention shifts to specifically the people with red balls on their heads, because they want to see whether or not they'll move when the master tells them to. The people with red balls on their heads notice that people are looking at them, and deduce that they must have a red ball on their head. They look at all the people with red balls and move when they move.
I really don't know how else you can do this without determining the number of balls or something like that.