pub fn new(
    width: scalar,
    join: Join,
    cap: Cap,
    miter: impl Into<Option<scalar>>
) -> Option<PathEffect>