Open bacchanalia opened 5 years ago
What version of diagrams-lib
are you using?
I'm using HEAD.
l
seems to work fine. But something funky is going on with the envelope of r
:
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
module Main where
import Diagrams.Backend.Rasterific.CmdLine
import Diagrams.Prelude
ex2 :: Diagram Rasterific
ex2 = hcat . map showEnvelope $ [r, padX 2 r]
where
r = strokeP $ p2 (1, 1) ~~ p2 (2, 0)
dia :: Diagram Rasterific
dia = (centerXY ex2 # pad 1.1)
main = mainWith (dia # bg white)
@bacchanalia , incidentally, foldl1 (|||)
should be equivalent to hcat
.
I expect there to be separation between the segments because of the padX, but there is not.