puzzle-draw-0.1.0.0: Creating graphics for pencil puzzles.
Diagrams.Puzzles.Draw
Synopsis
type PuzzleSol b = (Diagram b R2, Maybe (Diagram b R2)) Source
type RenderPuzzle b p s = (p -> Diagram b R2, (p, s) -> Diagram b R2) Source
data OutputChoice Source
Constructors
Instances
draw :: (Backend b R2, Renderable (Path R2) b) => PuzzleSol b -> OutputChoice -> Maybe (Diagram b R2) Source
Optionally render the puzzle, its solution, or a side-by-side example with puzzle and solution.