You put sugar, which can be ordinary granulated sugar, into a small centrifuge in the middle of the vessel. The sugar is heated electronically and then breaks down into glucose and fructose. Because the centrifuge then starts spinning, the sugar is flung out through small holes in the centrifuge wall, into the vessel. This forms very thin strands, which cannot crystallise because they cool very quickly. This creates the long strands, which are wound around a stick to form a candyfloss.