Skip to content

Juxtaposing padded lines not working as expected. #330

@bacchanalia

Description

@bacchanalia

I expect there to be separation between the segments because of the padX, but there is not.
padline

{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
module Main where
import Diagrams.Prelude
import Diagrams.Backend.Cairo.CmdLine

ex :: Diagram Cairo
ex = foldl1 (|||) $ map (padX 2) [l, r # lc red]
  where
    l = strokeP $ p2 (0, 0) ~~ p2 (1, 1)
    r = strokeP $ p2 (1, 1) ~~ p2 (2, 0)

dia :: Diagram Cairo
dia = (centerXY ex # pad 1.1)

main = mainWith (dia # bg white)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions