
上QQ阅读APP看书,第一时间看更新
Connecting line designs using Line Join
Line Join describes how lines will look at intersections or angles. There are several options here:
- StrokeLineJoin.MITER: A sharp angle made from outer parts of the connecting lines
- StrokeLineJoin.BEVEL: A cut out angle
- StrokeLineJoin.ROUND: A rounded-up angle
// chapter2.strokes/LineJoins.java
shape.setStrokeLineJoin(StrokeLineJoin.MITER);
shape.setStrokeMiterLimit(3);
The output is as follows:
