Drawing dotted lines

Drawing lines with custom dot-and-dash patterns.