Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upError in how polygons are drawn #178
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vilterp
commented
Feb 21, 2015
|
Fixed by using |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
imeckler
Feb 21, 2015
Contributor
I wouldn't call that "fixed", it's just a different thing since the corners are sharp rather than smooth.
|
I wouldn't call that "fixed", it's just a different thing since the corners are sharp rather than smooth. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vilterp
Feb 22, 2015
Fair. Seems like it isn't treating the lower right corner as a join, and is basically just drawing it as a path. Not quite sure where to fix this in Graphics.Collage.
vilterp
commented
Feb 22, 2015
|
Fair. Seems like it isn't treating the lower right corner as a join, and is basically just drawing it as a path. Not quite sure where to fix this in Graphics.Collage. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
Feb 22, 2015
Member
Is the fix "you can't draw closed polygons with lines"?
Currently the internal representation of Forms does not have any special cases, but it'd be good to have for circles and rectangles probably. I'd like to do a big set of improvements like this that includes supporting arcs, bezier curves, etc. but I think it'll be a while until then unfortunately :/
|
Is the fix "you can't draw closed polygons with lines"? Currently the internal representation of |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
May 11, 2016
Member
Sorry this did not get attention til now! The Graphics.* modules now live in evancz/elm-graphics so I am trying to get stuff migrated over there.
I don't really know what action to take on this one though, so unless there is a proposed fix, I'm not sure how valuable it is to keep this open.
|
Sorry this did not get attention til now! The I don't really know what action to take on this one though, so unless there is a proposed fix, I'm not sure how valuable it is to keep this open. |
imeckler commentedFeb 19, 2015
There is an error in the way polygons are draw. In short, the path defining the polygon is somehow not really being closed, and so linejoins are not rendered correctly. Here's an example showing smooth line joins being rendered jaggedly.
http://share-elm.com/sprout/54e64591e4b09711f39c2b0d