Safe Haskell | None |
---|---|
Language | Haskell98 |
Tools to draw individual puzzle components. In particular contents and decorations for individual cells.
- pearl :: (Renderable (Path R2) b, Backend b R2) => MasyuPearl -> Diagram b R2
- smallPearl :: (Renderable (Path R2) b, Backend b R2) => MasyuPearl -> Diagram b R2
- ur :: Path R2
- dr :: Path R2
- cross :: Path R2
- drawCross :: Renderable (Path R2) b => Diagram b R2
- drawCompassClue :: (Renderable (Path R2) b, Backend b R2) => CompassC -> Diagram b R2
- thermo :: Renderable (Path R2) b => [P2] -> QDiagram b R2 Any
- drawThermos :: Renderable (Path R2) b => [Thermometer] -> QDiagram b R2 Any
- drawTight :: (Renderable (Path R2) b, Backend b R2) => (a -> Diagram b R2) -> Tightfit a -> Diagram b R2
- stackWords :: (Backend b R2, Renderable (Path R2) b) => [String] -> QDiagram b R2 Any
- drawMarkedWord :: Renderable (Path R2) b => MarkedWord -> QDiagram b R2 Any
- drawMarkedWords :: Renderable (Path R2) b => [MarkedWord] -> QDiagram b R2 Any
- drawSlalomClue :: (Show a, Renderable (Path R2) b, Backend b R2) => a -> Diagram b R2
- drawText :: (Backend b R2, Renderable (Path R2) b) => String -> QDiagram b R2 Any
- drawInt :: (Renderable (Path R2) b, Backend b R2) => Int -> Diagram b R2
- drawChar :: (Renderable (Path R2) b, Backend b R2) => Char -> Diagram b R2
- drawWords :: (Renderable (Path R2) b, Backend b R2) => [String] -> Diagram b R2
- drawCurve :: Renderable (Path R2) b => [Edge] -> Diagram b R2
- drawShade :: Renderable (Path R2) b => Shade -> Diagram b R2
Documentation
pearl :: (Renderable (Path R2) b, Backend b R2) => MasyuPearl -> Diagram b R2 Source
smallPearl :: (Renderable (Path R2) b, Backend b R2) => MasyuPearl -> Diagram b R2 Source
drawCompassClue :: (Renderable (Path R2) b, Backend b R2) => CompassC -> Diagram b R2 Source
Draw a Compass clue.
thermo :: Renderable (Path R2) b => [P2] -> QDiagram b R2 Any Source
Draw a thermometer, given by a list of bottom-left corners of square cells.
drawThermos :: Renderable (Path R2) b => [Thermometer] -> QDiagram b R2 Any Source
Draw a list of thermometers, given as lists of (Int, Int)
cell
coordinates.
drawTight :: (Renderable (Path R2) b, Backend b R2) => (a -> Diagram b R2) -> Tightfit a -> Diagram b R2 Source
drawTight d t
draws the tight-fit value t
, using d
to
draw the components.
stackWords :: (Backend b R2, Renderable (Path R2) b) => [String] -> QDiagram b R2 Any Source
Stack the given words, left-justified.
drawMarkedWord :: Renderable (Path R2) b => MarkedWord -> QDiagram b R2 Any Source
Mark a word in a grid of letters.
drawMarkedWords :: Renderable (Path R2) b => [MarkedWord] -> QDiagram b R2 Any Source
Apply drawMarkedWord
to a list of words.
drawSlalomClue :: (Show a, Renderable (Path R2) b, Backend b R2) => a -> Diagram b R2 Source
Draw a slalom clue.
drawText :: (Backend b R2, Renderable (Path R2) b) => String -> QDiagram b R2 Any Source
Draw text. Shouldn't be more than two characters or so to fit a cell.
drawWords :: (Renderable (Path R2) b, Backend b R2) => [String] -> Diagram b R2 Source
Stack a list of words into a unit square. Scaled such that at least three words will fit.