Open
Description
import Diagrams.Backend.Cairo.CmdLine
import Diagrams.Prelude
main :: IO ()
main = defaultMain dia
dia :: Diagram B R2
dia = triangle 1 # fc green # rotateBy (1/5)
<> square 1.2 # fc white # lw 0
If you use this code with a width of 400 and produce a png, there's a small black line next to the rightmost vertex that should not be there. That also happens with different rotations, but only with that vertex (see this gif).
I tried it with the Cairo and the SVG backend; with the SVG backend, it looked fine.