Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
allow polyline with d=0
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-moen committed Sep 28, 2021
1 parent 0715ddc commit d6c2ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/curv/std.curv
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ stroke{d, from: a, to: b} =
};

polyline {
d :: (a->is_num a && a > 0),
d :: (a->is_num a && a >= 0),
v :: (a->is_list a && count a > 0 && and(map is_vec2 a))
} =
let r = d / 2;
Expand Down

0 comments on commit d6c2ff8

Please sign in to comment.