previous   Dash PatternJoin Style   next


Cap Style

The cap style can be one of: butt, round or square. (See Figure 9.2.)

capstyle
Figure 9.2: Cap styles: (a) butt, (b) round, (c) square. Note that the round and square caps protude from the start and end vertices.

Note that the cap is affected by whether the is open or closed. In Figure 9.3(a) the path is an open path where the end points happen to coincide; in Figure 9.3(b) the path is a closed path.

   
 capopen capclosed  
 (a) (b)  
Figure 9.3: The cap style is affected by whether the path is open or closed: (a) butt cap applied to an open path; (b) butt cap applied to a closed path.

See also: