You can paint glass using straight lines with masking tape. For painting a line in the middle of an object, use a measuring tape and measure both sides for evenness. You can also use a level.