for PenroseKiteDart but the examples obviously require PenroseKiteDart as well as Diagrams (so maybe not suitable for the Diagrams gallery).
Anyway, here is a single sample with code (using PKD and TgraphExamples from PenroseKiteDart)
-----
module Main (main) where
import Diagrams.Prelude
import Diagrams.Backend.SVG.CmdLine
-- From PenroseKiteDart package
import PKD(Tgraph,decompose,force,makeVP,colourDKG,subVP,faces)
import TgraphExamples(queenGraph)
-- Given a Tgraph, produce 7 layers, 6 by iterating (decompose . force) then a final force for the seventh.
-- Draw each layer with colourDKG and finer and finer line widths,
-- then overlay with mconcat for a final diagram.
nested :: Tgraph -> Diagram B
nested g =
mconcat $ zipWith ($)
[id, id, id, lw thin, lw veryThin, lw ultraThin, lw ultraThin]
layers
where
graphs = iterate (decompose . force) g
finalgraph = force $ graphs !! 6
vp = rotate (162@@deg) $ makeVP finalgraph
layers = fmap (colourDKG (darkmagenta, indigo, gold) . subVP vp . faces) $
take 6 graphs ++ [finalgraph]
fig::Diagram B
fig = nested queenGraph
main :: IO ()
main = mainWith fig