puzzle-draw-0.1.0.0: Creating graphics for pencil puzzles.

Safe HaskellNone
LanguageHaskell98

Diagrams.Puzzles.Grid

Synopsis

Documentation

dot :: (Renderable (Path R2) b, Backend b R2) => Diagram b R2 Source

Draw a small black dot with no envelope.

slithergrid :: (Backend b R2, Renderable (Path R2) b) => Size -> Diagram b R2 Source

Draw a Slither Link style grid of dots of the specified size.

gridlines :: Size -> Path R2 Source

The inner grid lines of a square grid of the specified size.

outframe :: Renderable (Path R2) b => Size -> Diagram b R2 Source

Draw a frame around the outside of a rectangle.

grid' :: (Backend b R2, Renderable (Path R2) b) => (Diagram b R2 -> Diagram b R2) -> Size -> Diagram b R2 Source

Draw a square grid, applying the given style to the grid lines.

grid :: (Backend b R2, Renderable (Path R2) b) => Size -> Diagram b R2 Source

Draw a square grid with default grid line style.

bgdashing :: (Semigroup a, HasStyle a) => [Double] -> Double -> Colour Double -> a -> a Source

dashedgrid :: (Backend b R2, Renderable (Path R2) b) => Size -> Diagram b R2 Source

Draw a square grid with dashed grid lines. The gaps between dashes are off-white to aid in using filling tools.

atCentres :: (Transformable a, Monoid a, V a ~ R2) => (t -> a) -> [(Coord, t)] -> a Source

In a square grid, use the first argument to draw things at the centres of cells given by coordinates.

atCentres' :: (Transformable a, V a ~ R2) => SGrid a -> [a] Source

atVertices :: (Transformable a, Monoid a, V a ~ R2) => (t -> a) -> [(Coord, t)] -> a Source

In a square grid, use the first argument to draw things at the grid vertices given by coordinates.

atVertices' :: (Transformable a, V a ~ R2) => SGrid a -> [a] Source

border :: (Backend b R2, Renderable (Path R2) b) => Size -> Diagram b R2 Source

Frame a rectangle of the given size with a border of width borderwidth.

edgeStyle :: HasStyle a => a -> a Source