Light painting
Light painting is a technique where you move a light source in front of the camera during a long exposure, leaving a drawing made of light.
Also known as: light drawing, light writing
Light painting is a technique that involves moving a light source (a flashlight, a phone, colored LED lights) in front of the camera during a long exposure in a dark environment, leaving the trail of that movement recorded as a drawing or pattern of light in the final image.
It requires a tripod (the camera must stay completely still), a dark environment so that only the moving light is recorded, and exposures that typically run from several seconds to several minutes, depending on the complexity of the trail you want.
For the step-by-step process, including camera settings and light-writing techniques, see light painting: painting with light step by step and the guide to experimental techniques and creative photography.