Introduction

The PostScript programming language is designed to describe the layout of graphics and text on the printed page. This website provides online utilities that show examples in actual practice.

7.29.2009

SETDASH :: Drawing Dotted Line / Broken Line

postscript postscript_setdash

PostScript :: SETDASH - Drawing Dotted Line / Broken Line

Operator: [a b c d ...] w setdash

sets the dash pattern parameter

Example:

a dash pattern

    %!
    newpath
    100 700 translate
    
    0 0 moveto 
    [8 8] 0 setdash
    400 0 rlineto
    stroke
    
    0 -100 moveto 
    [] 0 setdash
    400 0 rlineto
    stroke
    
    showpage
    

postscript postscript_setdash