Enum piet::LineJoin [−][src]
pub enum LineJoin {
Miter {
limit: f64,
},
Round,
Bevel,
}
Expand description
Options for angled joins in strokes.
Variants
The outer edges of the two paths are extended until they intersect.
Because the miter length can be extreme for small angles, you must supply
a ‘limit’ at which we will fallback on LineJoin::Bevel
.
This limit is the distance from the point where the inner edges of the stroke meet to the point where the outer edges meet.
The default limit is 10.0
.
This is also currently the default LineJoin
; you should only need to
construct it if you need to customize the limit
.
Fields of Miter
limit: f64
The maximum distance between the inner and outer stroke edges before beveling.
The two lines are joined by a circular arc.
The two segments are capped with LineCap::Butt
, and the notch is filled.
Implementations
The default maximum length for a LineJoin::Miter
.
This is defined in the Postscript Language Reference (pp 676).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LineJoin
impl UnwindSafe for LineJoin
Blanket Implementations
Mutably borrows from an owned value. Read more