wumpus-core 0.19.0 → 0.20.0
raw patch · 15 files changed
+111/−2475 lines, 15 filessetup-changedPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Wumpus.Core.BoundingBox: retrace :: (Num u, Ord u) => (Point2 u -> Point2 u) -> BoundingBox u -> BoundingBox u
- Wumpus.Core.BoundingBox: trace :: (Num u, Ord u) => [Point2 u] -> BoundingBox u
- Wumpus.Extra.SVGColours: aliceBlue :: DRGB
- Wumpus.Extra.SVGColours: antiqueWhite :: DRGB
- Wumpus.Extra.SVGColours: aqua :: DRGB
- Wumpus.Extra.SVGColours: aquamarine :: DRGB
- Wumpus.Extra.SVGColours: azure :: DRGB
- Wumpus.Extra.SVGColours: beige :: DRGB
- Wumpus.Extra.SVGColours: bisque :: DRGB
- Wumpus.Extra.SVGColours: black :: DRGB
- Wumpus.Extra.SVGColours: blanchedAlmond :: DRGB
- Wumpus.Extra.SVGColours: blue :: DRGB
- Wumpus.Extra.SVGColours: blueViolet :: DRGB
- Wumpus.Extra.SVGColours: brown :: DRGB
- Wumpus.Extra.SVGColours: burlywood :: DRGB
- Wumpus.Extra.SVGColours: cadetBlue :: DRGB
- Wumpus.Extra.SVGColours: chartreuse :: DRGB
- Wumpus.Extra.SVGColours: chocolate :: DRGB
- Wumpus.Extra.SVGColours: coral :: DRGB
- Wumpus.Extra.SVGColours: cornflowerBlue :: DRGB
- Wumpus.Extra.SVGColours: cornsilk :: DRGB
- Wumpus.Extra.SVGColours: crimson :: DRGB
- Wumpus.Extra.SVGColours: cyan :: DRGB
- Wumpus.Extra.SVGColours: darkBlue :: DRGB
- Wumpus.Extra.SVGColours: darkCyan :: DRGB
- Wumpus.Extra.SVGColours: darkGoldenrod :: DRGB
- Wumpus.Extra.SVGColours: darkGray :: DRGB
- Wumpus.Extra.SVGColours: darkGreen :: DRGB
- Wumpus.Extra.SVGColours: darkGrey :: DRGB
- Wumpus.Extra.SVGColours: darkKhaki :: DRGB
- Wumpus.Extra.SVGColours: darkMagenta :: DRGB
- Wumpus.Extra.SVGColours: darkOliveGreen :: DRGB
- Wumpus.Extra.SVGColours: darkOrange :: DRGB
- Wumpus.Extra.SVGColours: darkOrchid :: DRGB
- Wumpus.Extra.SVGColours: darkRed :: DRGB
- Wumpus.Extra.SVGColours: darkSalmon :: DRGB
- Wumpus.Extra.SVGColours: darkSeaGreen :: DRGB
- Wumpus.Extra.SVGColours: darkSlateBlue :: DRGB
- Wumpus.Extra.SVGColours: darkSlateGray :: DRGB
- Wumpus.Extra.SVGColours: darkSlateGrey :: DRGB
- Wumpus.Extra.SVGColours: darkTurquoise :: DRGB
- Wumpus.Extra.SVGColours: darkViolet :: DRGB
- Wumpus.Extra.SVGColours: deepPink :: DRGB
- Wumpus.Extra.SVGColours: deepSkyBlue :: DRGB
- Wumpus.Extra.SVGColours: dimGray :: DRGB
- Wumpus.Extra.SVGColours: dimGrey :: DRGB
- Wumpus.Extra.SVGColours: dodgerBlue :: DRGB
- Wumpus.Extra.SVGColours: firebrick :: DRGB
- Wumpus.Extra.SVGColours: floralWhite :: DRGB
- Wumpus.Extra.SVGColours: forestGreen :: DRGB
- Wumpus.Extra.SVGColours: fuchsia :: DRGB
- Wumpus.Extra.SVGColours: gainsboro :: DRGB
- Wumpus.Extra.SVGColours: ghostWhite :: DRGB
- Wumpus.Extra.SVGColours: gold :: DRGB
- Wumpus.Extra.SVGColours: goldenrod :: DRGB
- Wumpus.Extra.SVGColours: gray :: DRGB
- Wumpus.Extra.SVGColours: green :: DRGB
- Wumpus.Extra.SVGColours: greenYellow :: DRGB
- Wumpus.Extra.SVGColours: grey :: DRGB
- Wumpus.Extra.SVGColours: honeydew :: DRGB
- Wumpus.Extra.SVGColours: hotPink :: DRGB
- Wumpus.Extra.SVGColours: indianRed :: DRGB
- Wumpus.Extra.SVGColours: indigo :: DRGB
- Wumpus.Extra.SVGColours: ivory :: DRGB
- Wumpus.Extra.SVGColours: khaki :: DRGB
- Wumpus.Extra.SVGColours: lavender :: DRGB
- Wumpus.Extra.SVGColours: lavenderBlush :: DRGB
- Wumpus.Extra.SVGColours: lawnGreen :: DRGB
- Wumpus.Extra.SVGColours: lemonChiffon :: DRGB
- Wumpus.Extra.SVGColours: lightBlue :: DRGB
- Wumpus.Extra.SVGColours: lightCoral :: DRGB
- Wumpus.Extra.SVGColours: lightCyan :: DRGB
- Wumpus.Extra.SVGColours: lightGoldenrodYellow :: DRGB
- Wumpus.Extra.SVGColours: lightGray :: DRGB
- Wumpus.Extra.SVGColours: lightGreen :: DRGB
- Wumpus.Extra.SVGColours: lightGrey :: DRGB
- Wumpus.Extra.SVGColours: lightPink :: DRGB
- Wumpus.Extra.SVGColours: lightSalmon :: DRGB
- Wumpus.Extra.SVGColours: lightSeaGreen :: DRGB
- Wumpus.Extra.SVGColours: lightSkyBlue :: DRGB
- Wumpus.Extra.SVGColours: lightSlateGray :: DRGB
- Wumpus.Extra.SVGColours: lightSlateGrey :: DRGB
- Wumpus.Extra.SVGColours: lightSteelBlue :: DRGB
- Wumpus.Extra.SVGColours: lightYellow :: DRGB
- Wumpus.Extra.SVGColours: lime :: DRGB
- Wumpus.Extra.SVGColours: limeGreen :: DRGB
- Wumpus.Extra.SVGColours: linen :: DRGB
- Wumpus.Extra.SVGColours: magenta :: DRGB
- Wumpus.Extra.SVGColours: maroon :: DRGB
- Wumpus.Extra.SVGColours: mediumAquamarine :: DRGB
- Wumpus.Extra.SVGColours: mediumBlue :: DRGB
- Wumpus.Extra.SVGColours: mediumOrchid :: DRGB
- Wumpus.Extra.SVGColours: mediumPurple :: DRGB
- Wumpus.Extra.SVGColours: mediumSeaGreen :: DRGB
- Wumpus.Extra.SVGColours: mediumSlateBlue :: DRGB
- Wumpus.Extra.SVGColours: mediumSpringGreen :: DRGB
- Wumpus.Extra.SVGColours: mediumTurquoise :: DRGB
- Wumpus.Extra.SVGColours: mediumVioletRed :: DRGB
- Wumpus.Extra.SVGColours: midnightBlue :: DRGB
- Wumpus.Extra.SVGColours: mintcream :: DRGB
- Wumpus.Extra.SVGColours: mistyrose :: DRGB
- Wumpus.Extra.SVGColours: moccasin :: DRGB
- Wumpus.Extra.SVGColours: navajoWhite :: DRGB
- Wumpus.Extra.SVGColours: navy :: DRGB
- Wumpus.Extra.SVGColours: oldlace :: DRGB
- Wumpus.Extra.SVGColours: olive :: DRGB
- Wumpus.Extra.SVGColours: oliveDrab :: DRGB
- Wumpus.Extra.SVGColours: orange :: DRGB
- Wumpus.Extra.SVGColours: orangeRed :: DRGB
- Wumpus.Extra.SVGColours: orchid :: DRGB
- Wumpus.Extra.SVGColours: paleGoldenrod :: DRGB
- Wumpus.Extra.SVGColours: paleGreen :: DRGB
- Wumpus.Extra.SVGColours: paleTurquoise :: DRGB
- Wumpus.Extra.SVGColours: paleVioletRed :: DRGB
- Wumpus.Extra.SVGColours: papayawhip :: DRGB
- Wumpus.Extra.SVGColours: peachpuff :: DRGB
- Wumpus.Extra.SVGColours: peru :: DRGB
- Wumpus.Extra.SVGColours: pink :: DRGB
- Wumpus.Extra.SVGColours: plum :: DRGB
- Wumpus.Extra.SVGColours: powderBlue :: DRGB
- Wumpus.Extra.SVGColours: purple :: DRGB
- Wumpus.Extra.SVGColours: red :: DRGB
- Wumpus.Extra.SVGColours: rosyBrown :: DRGB
- Wumpus.Extra.SVGColours: royalBlue :: DRGB
- Wumpus.Extra.SVGColours: saddleBrown :: DRGB
- Wumpus.Extra.SVGColours: salmon :: DRGB
- Wumpus.Extra.SVGColours: sandyBrown :: DRGB
- Wumpus.Extra.SVGColours: seaGreen :: DRGB
- Wumpus.Extra.SVGColours: seashell :: DRGB
- Wumpus.Extra.SVGColours: sienna :: DRGB
- Wumpus.Extra.SVGColours: silver :: DRGB
- Wumpus.Extra.SVGColours: skyBlue :: DRGB
- Wumpus.Extra.SVGColours: slateBlue :: DRGB
- Wumpus.Extra.SVGColours: slateGray :: DRGB
- Wumpus.Extra.SVGColours: slateGrey :: DRGB
- Wumpus.Extra.SVGColours: snow :: DRGB
- Wumpus.Extra.SVGColours: springGreen :: DRGB
- Wumpus.Extra.SVGColours: steelBlue :: DRGB
- Wumpus.Extra.SVGColours: tan :: DRGB
- Wumpus.Extra.SVGColours: teal :: DRGB
- Wumpus.Extra.SVGColours: thistle :: DRGB
- Wumpus.Extra.SVGColours: tomato :: DRGB
- Wumpus.Extra.SVGColours: turquoise :: DRGB
- Wumpus.Extra.SVGColours: violet :: DRGB
- Wumpus.Extra.SVGColours: wheat :: DRGB
- Wumpus.Extra.SVGColours: white :: DRGB
- Wumpus.Extra.SVGColours: whitesmoke :: DRGB
- Wumpus.Extra.SVGColours: yellow :: DRGB
- Wumpus.Extra.SVGColours: yellowGreen :: DRGB
- Wumpus.Extra.SafeFonts: courier10 :: FontAttr
- Wumpus.Extra.SafeFonts: courier12 :: FontAttr
- Wumpus.Extra.SafeFonts: courier18 :: FontAttr
- Wumpus.Extra.SafeFonts: courier24 :: FontAttr
- Wumpus.Extra.SafeFonts: courier36 :: FontAttr
- Wumpus.Extra.SafeFonts: courier48 :: FontAttr
- Wumpus.Extra.SafeFonts: courierBold10 :: FontAttr
- Wumpus.Extra.SafeFonts: courierBold12 :: FontAttr
- Wumpus.Extra.SafeFonts: courierBold18 :: FontAttr
- Wumpus.Extra.SafeFonts: courierBold24 :: FontAttr
- Wumpus.Extra.SafeFonts: courierBold36 :: FontAttr
- Wumpus.Extra.SafeFonts: courierBold48 :: FontAttr
- Wumpus.Extra.SafeFonts: courierBoldOblique10 :: FontAttr
- Wumpus.Extra.SafeFonts: courierBoldOblique12 :: FontAttr
- Wumpus.Extra.SafeFonts: courierBoldOblique18 :: FontAttr
- Wumpus.Extra.SafeFonts: courierBoldOblique24 :: FontAttr
- Wumpus.Extra.SafeFonts: courierBoldOblique36 :: FontAttr
- Wumpus.Extra.SafeFonts: courierBoldOblique48 :: FontAttr
- Wumpus.Extra.SafeFonts: courierOblique10 :: FontAttr
- Wumpus.Extra.SafeFonts: courierOblique12 :: FontAttr
- Wumpus.Extra.SafeFonts: courierOblique18 :: FontAttr
- Wumpus.Extra.SafeFonts: courierOblique24 :: FontAttr
- Wumpus.Extra.SafeFonts: courierOblique36 :: FontAttr
- Wumpus.Extra.SafeFonts: courierOblique48 :: FontAttr
- Wumpus.Extra.SafeFonts: helvetica10 :: FontAttr
- Wumpus.Extra.SafeFonts: helvetica12 :: FontAttr
- Wumpus.Extra.SafeFonts: helvetica18 :: FontAttr
- Wumpus.Extra.SafeFonts: helvetica24 :: FontAttr
- Wumpus.Extra.SafeFonts: helvetica36 :: FontAttr
- Wumpus.Extra.SafeFonts: helvetica48 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaBold10 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaBold12 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaBold18 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaBold24 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaBold36 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaBold48 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaBoldOblique10 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaBoldOblique12 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaBoldOblique18 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaBoldOblique24 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaBoldOblique36 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaBoldOblique48 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaOblique10 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaOblique12 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaOblique18 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaOblique24 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaOblique36 :: FontAttr
- Wumpus.Extra.SafeFonts: helveticaOblique48 :: FontAttr
- Wumpus.Extra.SafeFonts: symbol10 :: FontAttr
- Wumpus.Extra.SafeFonts: symbol12 :: FontAttr
- Wumpus.Extra.SafeFonts: symbol18 :: FontAttr
- Wumpus.Extra.SafeFonts: symbol24 :: FontAttr
- Wumpus.Extra.SafeFonts: symbol36 :: FontAttr
- Wumpus.Extra.SafeFonts: symbol48 :: FontAttr
- Wumpus.Extra.SafeFonts: timesBold10 :: FontAttr
- Wumpus.Extra.SafeFonts: timesBold12 :: FontAttr
- Wumpus.Extra.SafeFonts: timesBold18 :: FontAttr
- Wumpus.Extra.SafeFonts: timesBold24 :: FontAttr
- Wumpus.Extra.SafeFonts: timesBold36 :: FontAttr
- Wumpus.Extra.SafeFonts: timesBold48 :: FontAttr
- Wumpus.Extra.SafeFonts: timesBoldItalic10 :: FontAttr
- Wumpus.Extra.SafeFonts: timesBoldItalic12 :: FontAttr
- Wumpus.Extra.SafeFonts: timesBoldItalic18 :: FontAttr
- Wumpus.Extra.SafeFonts: timesBoldItalic24 :: FontAttr
- Wumpus.Extra.SafeFonts: timesBoldItalic36 :: FontAttr
- Wumpus.Extra.SafeFonts: timesBoldItalic48 :: FontAttr
- Wumpus.Extra.SafeFonts: timesItalic10 :: FontAttr
- Wumpus.Extra.SafeFonts: timesItalic12 :: FontAttr
- Wumpus.Extra.SafeFonts: timesItalic18 :: FontAttr
- Wumpus.Extra.SafeFonts: timesItalic24 :: FontAttr
- Wumpus.Extra.SafeFonts: timesItalic36 :: FontAttr
- Wumpus.Extra.SafeFonts: timesItalic48 :: FontAttr
- Wumpus.Extra.SafeFonts: timesRoman10 :: FontAttr
- Wumpus.Extra.SafeFonts: timesRoman12 :: FontAttr
- Wumpus.Extra.SafeFonts: timesRoman18 :: FontAttr
- Wumpus.Extra.SafeFonts: timesRoman24 :: FontAttr
- Wumpus.Extra.SafeFonts: timesRoman36 :: FontAttr
- Wumpus.Extra.SafeFonts: timesRoman48 :: FontAttr
- Wumpus.Extra.X11Colours: antiqueWhite1 :: DRGB
- Wumpus.Extra.X11Colours: antiqueWhite2 :: DRGB
- Wumpus.Extra.X11Colours: antiqueWhite3 :: DRGB
- Wumpus.Extra.X11Colours: antiqueWhite4 :: DRGB
- Wumpus.Extra.X11Colours: aquamarine1 :: DRGB
- Wumpus.Extra.X11Colours: aquamarine2 :: DRGB
- Wumpus.Extra.X11Colours: aquamarine3 :: DRGB
- Wumpus.Extra.X11Colours: aquamarine4 :: DRGB
- Wumpus.Extra.X11Colours: azure1 :: DRGB
- Wumpus.Extra.X11Colours: azure2 :: DRGB
- Wumpus.Extra.X11Colours: azure3 :: DRGB
- Wumpus.Extra.X11Colours: azure4 :: DRGB
- Wumpus.Extra.X11Colours: bisque1 :: DRGB
- Wumpus.Extra.X11Colours: bisque2 :: DRGB
- Wumpus.Extra.X11Colours: bisque3 :: DRGB
- Wumpus.Extra.X11Colours: bisque4 :: DRGB
- Wumpus.Extra.X11Colours: blue1 :: DRGB
- Wumpus.Extra.X11Colours: blue2 :: DRGB
- Wumpus.Extra.X11Colours: blue3 :: DRGB
- Wumpus.Extra.X11Colours: blue4 :: DRGB
- Wumpus.Extra.X11Colours: brown1 :: DRGB
- Wumpus.Extra.X11Colours: brown2 :: DRGB
- Wumpus.Extra.X11Colours: brown3 :: DRGB
- Wumpus.Extra.X11Colours: brown4 :: DRGB
- Wumpus.Extra.X11Colours: burlywood1 :: DRGB
- Wumpus.Extra.X11Colours: burlywood2 :: DRGB
- Wumpus.Extra.X11Colours: burlywood3 :: DRGB
- Wumpus.Extra.X11Colours: burlywood4 :: DRGB
- Wumpus.Extra.X11Colours: cadetBlue1 :: DRGB
- Wumpus.Extra.X11Colours: cadetBlue2 :: DRGB
- Wumpus.Extra.X11Colours: cadetBlue3 :: DRGB
- Wumpus.Extra.X11Colours: cadetBlue4 :: DRGB
- Wumpus.Extra.X11Colours: chartreuse1 :: DRGB
- Wumpus.Extra.X11Colours: chartreuse2 :: DRGB
- Wumpus.Extra.X11Colours: chartreuse3 :: DRGB
- Wumpus.Extra.X11Colours: chartreuse4 :: DRGB
- Wumpus.Extra.X11Colours: chocolate1 :: DRGB
- Wumpus.Extra.X11Colours: chocolate2 :: DRGB
- Wumpus.Extra.X11Colours: chocolate3 :: DRGB
- Wumpus.Extra.X11Colours: chocolate4 :: DRGB
- Wumpus.Extra.X11Colours: coral1 :: DRGB
- Wumpus.Extra.X11Colours: coral2 :: DRGB
- Wumpus.Extra.X11Colours: coral3 :: DRGB
- Wumpus.Extra.X11Colours: coral4 :: DRGB
- Wumpus.Extra.X11Colours: cornsilk1 :: DRGB
- Wumpus.Extra.X11Colours: cornsilk2 :: DRGB
- Wumpus.Extra.X11Colours: cornsilk3 :: DRGB
- Wumpus.Extra.X11Colours: cornsilk4 :: DRGB
- Wumpus.Extra.X11Colours: cyan1 :: DRGB
- Wumpus.Extra.X11Colours: cyan2 :: DRGB
- Wumpus.Extra.X11Colours: cyan3 :: DRGB
- Wumpus.Extra.X11Colours: cyan4 :: DRGB
- Wumpus.Extra.X11Colours: darkGoldenrod1 :: DRGB
- Wumpus.Extra.X11Colours: darkGoldenrod2 :: DRGB
- Wumpus.Extra.X11Colours: darkGoldenrod3 :: DRGB
- Wumpus.Extra.X11Colours: darkGoldenrod4 :: DRGB
- Wumpus.Extra.X11Colours: darkOliveGreen1 :: DRGB
- Wumpus.Extra.X11Colours: darkOliveGreen2 :: DRGB
- Wumpus.Extra.X11Colours: darkOliveGreen3 :: DRGB
- Wumpus.Extra.X11Colours: darkOliveGreen4 :: DRGB
- Wumpus.Extra.X11Colours: darkOrange1 :: DRGB
- Wumpus.Extra.X11Colours: darkOrange2 :: DRGB
- Wumpus.Extra.X11Colours: darkOrange3 :: DRGB
- Wumpus.Extra.X11Colours: darkOrange4 :: DRGB
- Wumpus.Extra.X11Colours: darkOrchid1 :: DRGB
- Wumpus.Extra.X11Colours: darkOrchid2 :: DRGB
- Wumpus.Extra.X11Colours: darkOrchid3 :: DRGB
- Wumpus.Extra.X11Colours: darkOrchid4 :: DRGB
- Wumpus.Extra.X11Colours: darkSeaGreen1 :: DRGB
- Wumpus.Extra.X11Colours: darkSeaGreen2 :: DRGB
- Wumpus.Extra.X11Colours: darkSeaGreen3 :: DRGB
- Wumpus.Extra.X11Colours: darkSeaGreen4 :: DRGB
- Wumpus.Extra.X11Colours: darkSlateGray1 :: DRGB
- Wumpus.Extra.X11Colours: darkSlateGray2 :: DRGB
- Wumpus.Extra.X11Colours: darkSlateGray3 :: DRGB
- Wumpus.Extra.X11Colours: darkSlateGray4 :: DRGB
- Wumpus.Extra.X11Colours: deepPink1 :: DRGB
- Wumpus.Extra.X11Colours: deepPink2 :: DRGB
- Wumpus.Extra.X11Colours: deepPink3 :: DRGB
- Wumpus.Extra.X11Colours: deepPink4 :: DRGB
- Wumpus.Extra.X11Colours: deepSkyBlue1 :: DRGB
- Wumpus.Extra.X11Colours: deepSkyBlue2 :: DRGB
- Wumpus.Extra.X11Colours: deepSkyBlue3 :: DRGB
- Wumpus.Extra.X11Colours: deepSkyBlue4 :: DRGB
- Wumpus.Extra.X11Colours: dodgerBlue1 :: DRGB
- Wumpus.Extra.X11Colours: dodgerBlue2 :: DRGB
- Wumpus.Extra.X11Colours: dodgerBlue3 :: DRGB
- Wumpus.Extra.X11Colours: dodgerBlue4 :: DRGB
- Wumpus.Extra.X11Colours: firebrick1 :: DRGB
- Wumpus.Extra.X11Colours: firebrick2 :: DRGB
- Wumpus.Extra.X11Colours: firebrick3 :: DRGB
- Wumpus.Extra.X11Colours: firebrick4 :: DRGB
- Wumpus.Extra.X11Colours: gold1 :: DRGB
- Wumpus.Extra.X11Colours: gold2 :: DRGB
- Wumpus.Extra.X11Colours: gold3 :: DRGB
- Wumpus.Extra.X11Colours: gold4 :: DRGB
- Wumpus.Extra.X11Colours: goldenrod1 :: DRGB
- Wumpus.Extra.X11Colours: goldenrod2 :: DRGB
- Wumpus.Extra.X11Colours: goldenrod3 :: DRGB
- Wumpus.Extra.X11Colours: goldenrod4 :: DRGB
- Wumpus.Extra.X11Colours: gray0 :: DRGB
- Wumpus.Extra.X11Colours: green0 :: DRGB
- Wumpus.Extra.X11Colours: green1 :: DRGB
- Wumpus.Extra.X11Colours: green2 :: DRGB
- Wumpus.Extra.X11Colours: green3 :: DRGB
- Wumpus.Extra.X11Colours: green4 :: DRGB
- Wumpus.Extra.X11Colours: grey0 :: DRGB
- Wumpus.Extra.X11Colours: honeydew1 :: DRGB
- Wumpus.Extra.X11Colours: honeydew2 :: DRGB
- Wumpus.Extra.X11Colours: honeydew3 :: DRGB
- Wumpus.Extra.X11Colours: honeydew4 :: DRGB
- Wumpus.Extra.X11Colours: hotPink1 :: DRGB
- Wumpus.Extra.X11Colours: hotPink2 :: DRGB
- Wumpus.Extra.X11Colours: hotPink3 :: DRGB
- Wumpus.Extra.X11Colours: hotPink4 :: DRGB
- Wumpus.Extra.X11Colours: indianRed1 :: DRGB
- Wumpus.Extra.X11Colours: indianRed2 :: DRGB
- Wumpus.Extra.X11Colours: indianRed3 :: DRGB
- Wumpus.Extra.X11Colours: indianRed4 :: DRGB
- Wumpus.Extra.X11Colours: ivory1 :: DRGB
- Wumpus.Extra.X11Colours: ivory2 :: DRGB
- Wumpus.Extra.X11Colours: ivory3 :: DRGB
- Wumpus.Extra.X11Colours: ivory4 :: DRGB
- Wumpus.Extra.X11Colours: khaki1 :: DRGB
- Wumpus.Extra.X11Colours: khaki2 :: DRGB
- Wumpus.Extra.X11Colours: khaki3 :: DRGB
- Wumpus.Extra.X11Colours: khaki4 :: DRGB
- Wumpus.Extra.X11Colours: lavenderBlush1 :: DRGB
- Wumpus.Extra.X11Colours: lavenderBlush2 :: DRGB
- Wumpus.Extra.X11Colours: lavenderBlush3 :: DRGB
- Wumpus.Extra.X11Colours: lavenderBlush4 :: DRGB
- Wumpus.Extra.X11Colours: lemonChiffon1 :: DRGB
- Wumpus.Extra.X11Colours: lemonChiffon2 :: DRGB
- Wumpus.Extra.X11Colours: lemonChiffon3 :: DRGB
- Wumpus.Extra.X11Colours: lemonChiffon4 :: DRGB
- Wumpus.Extra.X11Colours: lightBlue1 :: DRGB
- Wumpus.Extra.X11Colours: lightBlue2 :: DRGB
- Wumpus.Extra.X11Colours: lightBlue3 :: DRGB
- Wumpus.Extra.X11Colours: lightBlue4 :: DRGB
- Wumpus.Extra.X11Colours: lightCyan1 :: DRGB
- Wumpus.Extra.X11Colours: lightCyan2 :: DRGB
- Wumpus.Extra.X11Colours: lightCyan3 :: DRGB
- Wumpus.Extra.X11Colours: lightCyan4 :: DRGB
- Wumpus.Extra.X11Colours: lightGoldenrod1 :: DRGB
- Wumpus.Extra.X11Colours: lightGoldenrod2 :: DRGB
- Wumpus.Extra.X11Colours: lightGoldenrod3 :: DRGB
- Wumpus.Extra.X11Colours: lightGoldenrod4 :: DRGB
- Wumpus.Extra.X11Colours: lightPink1 :: DRGB
- Wumpus.Extra.X11Colours: lightPink2 :: DRGB
- Wumpus.Extra.X11Colours: lightPink3 :: DRGB
- Wumpus.Extra.X11Colours: lightPink4 :: DRGB
- Wumpus.Extra.X11Colours: lightSalmon1 :: DRGB
- Wumpus.Extra.X11Colours: lightSalmon2 :: DRGB
- Wumpus.Extra.X11Colours: lightSalmon3 :: DRGB
- Wumpus.Extra.X11Colours: lightSalmon4 :: DRGB
- Wumpus.Extra.X11Colours: lightSkyBlue1 :: DRGB
- Wumpus.Extra.X11Colours: lightSkyBlue2 :: DRGB
- Wumpus.Extra.X11Colours: lightSkyBlue3 :: DRGB
- Wumpus.Extra.X11Colours: lightSkyBlue4 :: DRGB
- Wumpus.Extra.X11Colours: lightSteelBlue1 :: DRGB
- Wumpus.Extra.X11Colours: lightSteelBlue2 :: DRGB
- Wumpus.Extra.X11Colours: lightSteelBlue3 :: DRGB
- Wumpus.Extra.X11Colours: lightSteelBlue4 :: DRGB
- Wumpus.Extra.X11Colours: lightYellow1 :: DRGB
- Wumpus.Extra.X11Colours: lightYellow2 :: DRGB
- Wumpus.Extra.X11Colours: lightYellow3 :: DRGB
- Wumpus.Extra.X11Colours: lightYellow4 :: DRGB
- Wumpus.Extra.X11Colours: magenta1 :: DRGB
- Wumpus.Extra.X11Colours: magenta2 :: DRGB
- Wumpus.Extra.X11Colours: magenta3 :: DRGB
- Wumpus.Extra.X11Colours: magenta4 :: DRGB
- Wumpus.Extra.X11Colours: maroon0 :: DRGB
- Wumpus.Extra.X11Colours: maroon1 :: DRGB
- Wumpus.Extra.X11Colours: maroon2 :: DRGB
- Wumpus.Extra.X11Colours: maroon3 :: DRGB
- Wumpus.Extra.X11Colours: maroon4 :: DRGB
- Wumpus.Extra.X11Colours: mediumOrchid1 :: DRGB
- Wumpus.Extra.X11Colours: mediumOrchid2 :: DRGB
- Wumpus.Extra.X11Colours: mediumOrchid3 :: DRGB
- Wumpus.Extra.X11Colours: mediumOrchid4 :: DRGB
- Wumpus.Extra.X11Colours: mediumPurple1 :: DRGB
- Wumpus.Extra.X11Colours: mediumPurple2 :: DRGB
- Wumpus.Extra.X11Colours: mediumPurple3 :: DRGB
- Wumpus.Extra.X11Colours: mediumPurple4 :: DRGB
- Wumpus.Extra.X11Colours: mistyRose1 :: DRGB
- Wumpus.Extra.X11Colours: mistyRose2 :: DRGB
- Wumpus.Extra.X11Colours: mistyRose3 :: DRGB
- Wumpus.Extra.X11Colours: mistyRose4 :: DRGB
- Wumpus.Extra.X11Colours: navajoWhite1 :: DRGB
- Wumpus.Extra.X11Colours: navajoWhite2 :: DRGB
- Wumpus.Extra.X11Colours: navajoWhite3 :: DRGB
- Wumpus.Extra.X11Colours: navajoWhite4 :: DRGB
- Wumpus.Extra.X11Colours: oliveDrab1 :: DRGB
- Wumpus.Extra.X11Colours: oliveDrab2 :: DRGB
- Wumpus.Extra.X11Colours: oliveDrab3 :: DRGB
- Wumpus.Extra.X11Colours: oliveDrab4 :: DRGB
- Wumpus.Extra.X11Colours: orange1 :: DRGB
- Wumpus.Extra.X11Colours: orange2 :: DRGB
- Wumpus.Extra.X11Colours: orange3 :: DRGB
- Wumpus.Extra.X11Colours: orange4 :: DRGB
- Wumpus.Extra.X11Colours: orangeRed1 :: DRGB
- Wumpus.Extra.X11Colours: orangeRed2 :: DRGB
- Wumpus.Extra.X11Colours: orangeRed3 :: DRGB
- Wumpus.Extra.X11Colours: orangeRed4 :: DRGB
- Wumpus.Extra.X11Colours: orchid1 :: DRGB
- Wumpus.Extra.X11Colours: orchid2 :: DRGB
- Wumpus.Extra.X11Colours: orchid3 :: DRGB
- Wumpus.Extra.X11Colours: orchid4 :: DRGB
- Wumpus.Extra.X11Colours: paleGreen1 :: DRGB
- Wumpus.Extra.X11Colours: paleGreen2 :: DRGB
- Wumpus.Extra.X11Colours: paleGreen3 :: DRGB
- Wumpus.Extra.X11Colours: paleGreen4 :: DRGB
- Wumpus.Extra.X11Colours: paleTurquoise1 :: DRGB
- Wumpus.Extra.X11Colours: paleTurquoise2 :: DRGB
- Wumpus.Extra.X11Colours: paleTurquoise3 :: DRGB
- Wumpus.Extra.X11Colours: paleTurquoise4 :: DRGB
- Wumpus.Extra.X11Colours: paleVioletRed1 :: DRGB
- Wumpus.Extra.X11Colours: paleVioletRed2 :: DRGB
- Wumpus.Extra.X11Colours: paleVioletRed3 :: DRGB
- Wumpus.Extra.X11Colours: paleVioletRed4 :: DRGB
- Wumpus.Extra.X11Colours: peachPuff1 :: DRGB
- Wumpus.Extra.X11Colours: peachPuff2 :: DRGB
- Wumpus.Extra.X11Colours: peachPuff3 :: DRGB
- Wumpus.Extra.X11Colours: peachPuff4 :: DRGB
- Wumpus.Extra.X11Colours: pink1 :: DRGB
- Wumpus.Extra.X11Colours: pink2 :: DRGB
- Wumpus.Extra.X11Colours: pink3 :: DRGB
- Wumpus.Extra.X11Colours: pink4 :: DRGB
- Wumpus.Extra.X11Colours: plum1 :: DRGB
- Wumpus.Extra.X11Colours: plum2 :: DRGB
- Wumpus.Extra.X11Colours: plum3 :: DRGB
- Wumpus.Extra.X11Colours: plum4 :: DRGB
- Wumpus.Extra.X11Colours: purple0 :: DRGB
- Wumpus.Extra.X11Colours: purple1 :: DRGB
- Wumpus.Extra.X11Colours: purple2 :: DRGB
- Wumpus.Extra.X11Colours: purple3 :: DRGB
- Wumpus.Extra.X11Colours: purple4 :: DRGB
- Wumpus.Extra.X11Colours: red1 :: DRGB
- Wumpus.Extra.X11Colours: red2 :: DRGB
- Wumpus.Extra.X11Colours: red3 :: DRGB
- Wumpus.Extra.X11Colours: red4 :: DRGB
- Wumpus.Extra.X11Colours: rosyBrown1 :: DRGB
- Wumpus.Extra.X11Colours: rosyBrown2 :: DRGB
- Wumpus.Extra.X11Colours: rosyBrown3 :: DRGB
- Wumpus.Extra.X11Colours: rosyBrown4 :: DRGB
- Wumpus.Extra.X11Colours: royalBlue1 :: DRGB
- Wumpus.Extra.X11Colours: royalBlue2 :: DRGB
- Wumpus.Extra.X11Colours: royalBlue3 :: DRGB
- Wumpus.Extra.X11Colours: royalBlue4 :: DRGB
- Wumpus.Extra.X11Colours: salmon1 :: DRGB
- Wumpus.Extra.X11Colours: salmon2 :: DRGB
- Wumpus.Extra.X11Colours: salmon3 :: DRGB
- Wumpus.Extra.X11Colours: salmon4 :: DRGB
- Wumpus.Extra.X11Colours: seaGreen1 :: DRGB
- Wumpus.Extra.X11Colours: seaGreen2 :: DRGB
- Wumpus.Extra.X11Colours: seaGreen3 :: DRGB
- Wumpus.Extra.X11Colours: seaGreen4 :: DRGB
- Wumpus.Extra.X11Colours: seashell1 :: DRGB
- Wumpus.Extra.X11Colours: seashell2 :: DRGB
- Wumpus.Extra.X11Colours: seashell3 :: DRGB
- Wumpus.Extra.X11Colours: seashell4 :: DRGB
- Wumpus.Extra.X11Colours: sienna1 :: DRGB
- Wumpus.Extra.X11Colours: sienna2 :: DRGB
- Wumpus.Extra.X11Colours: sienna3 :: DRGB
- Wumpus.Extra.X11Colours: sienna4 :: DRGB
- Wumpus.Extra.X11Colours: skyBlue1 :: DRGB
- Wumpus.Extra.X11Colours: skyBlue2 :: DRGB
- Wumpus.Extra.X11Colours: skyBlue3 :: DRGB
- Wumpus.Extra.X11Colours: skyBlue4 :: DRGB
- Wumpus.Extra.X11Colours: slateBlue1 :: DRGB
- Wumpus.Extra.X11Colours: slateBlue2 :: DRGB
- Wumpus.Extra.X11Colours: slateBlue3 :: DRGB
- Wumpus.Extra.X11Colours: slateBlue4 :: DRGB
- Wumpus.Extra.X11Colours: slateGray1 :: DRGB
- Wumpus.Extra.X11Colours: slateGray2 :: DRGB
- Wumpus.Extra.X11Colours: slateGray3 :: DRGB
- Wumpus.Extra.X11Colours: slateGray4 :: DRGB
- Wumpus.Extra.X11Colours: snow1 :: DRGB
- Wumpus.Extra.X11Colours: snow2 :: DRGB
- Wumpus.Extra.X11Colours: snow3 :: DRGB
- Wumpus.Extra.X11Colours: snow4 :: DRGB
- Wumpus.Extra.X11Colours: springGreen1 :: DRGB
- Wumpus.Extra.X11Colours: springGreen2 :: DRGB
- Wumpus.Extra.X11Colours: springGreen3 :: DRGB
- Wumpus.Extra.X11Colours: springGreen4 :: DRGB
- Wumpus.Extra.X11Colours: steelBlue1 :: DRGB
- Wumpus.Extra.X11Colours: steelBlue2 :: DRGB
- Wumpus.Extra.X11Colours: steelBlue3 :: DRGB
- Wumpus.Extra.X11Colours: steelBlue4 :: DRGB
- Wumpus.Extra.X11Colours: tan1 :: DRGB
- Wumpus.Extra.X11Colours: tan2 :: DRGB
- Wumpus.Extra.X11Colours: tan3 :: DRGB
- Wumpus.Extra.X11Colours: tan4 :: DRGB
- Wumpus.Extra.X11Colours: thistle1 :: DRGB
- Wumpus.Extra.X11Colours: thistle2 :: DRGB
- Wumpus.Extra.X11Colours: thistle3 :: DRGB
- Wumpus.Extra.X11Colours: thistle4 :: DRGB
- Wumpus.Extra.X11Colours: tomato1 :: DRGB
- Wumpus.Extra.X11Colours: tomato2 :: DRGB
- Wumpus.Extra.X11Colours: tomato3 :: DRGB
- Wumpus.Extra.X11Colours: tomato4 :: DRGB
- Wumpus.Extra.X11Colours: turquoise1 :: DRGB
- Wumpus.Extra.X11Colours: turquoise2 :: DRGB
- Wumpus.Extra.X11Colours: turquoise3 :: DRGB
- Wumpus.Extra.X11Colours: turquoise4 :: DRGB
- Wumpus.Extra.X11Colours: violetRed1 :: DRGB
- Wumpus.Extra.X11Colours: violetRed2 :: DRGB
- Wumpus.Extra.X11Colours: violetRed3 :: DRGB
- Wumpus.Extra.X11Colours: violetRed4 :: DRGB
- Wumpus.Extra.X11Colours: wheat1 :: DRGB
- Wumpus.Extra.X11Colours: wheat2 :: DRGB
- Wumpus.Extra.X11Colours: wheat3 :: DRGB
- Wumpus.Extra.X11Colours: wheat4 :: DRGB
- Wumpus.Extra.X11Colours: yellow1 :: DRGB
- Wumpus.Extra.X11Colours: yellow2 :: DRGB
- Wumpus.Extra.X11Colours: yellow3 :: DRGB
- Wumpus.Extra.X11Colours: yellow4 :: DRGB
+ Wumpus.Core.BoundingBox: retraceBoundary :: (Num u, Ord u) => (Point2 u -> Point2 u) -> BoundingBox u -> BoundingBox u
+ Wumpus.Core.BoundingBox: traceBoundary :: (Num u, Ord u) => [Point2 u] -> BoundingBox u
+ Wumpus.Core.FontSize: capHeight :: (Fractional u) => FontSize -> u
Files
- CHANGES +23/−2
- Setup.hs +2/−0
- demo/FontPic.hs +0/−171
- demo/Picture.hs +8/−6
- doc-src/Guide.lhs +11/−32
- doc/Guide.pdf binary
- src/Wumpus/Core/BoundingBox.hs +9/−8
- src/Wumpus/Core/FontSize.hs +19/−7
- src/Wumpus/Core/Picture.hs +2/−2
- src/Wumpus/Core/PictureInternal.hs +5/−4
- src/Wumpus/Core/VersionNumber.hs +1/−1
- src/Wumpus/Extra/SVGColours.hs +0/−626
- src/Wumpus/Extra/SafeFonts.hs +0/−459
- src/Wumpus/Extra/X11Colours.hs +0/−1060
- wumpus-core.cabal +31/−97
CHANGES view
@@ -1,5 +1,27 @@+0.19.0 to 0.20.0:+ + * Removed the modules:+ (1) Wumpus.Extra.SafeFonts+ (2) Wumpus.Extra.SVGColours@+ (3) Wumpus.Extra.X11Colours - they are now in the package + @wumpus-basic@.+ + * Removed the example FontPic.hs to @wumpus-basic@.+ + * Renamed some functions in Core.BoundingBox: + (1) @trace@ changed to @traceBoundary@, (2) @retrace@ + changed to @retraceBoundary@.+ + * Fixed bug with @picOver@, previously the zorder was wrong + and the function was actually working as /picUnder/. + + * Added @capHeight@ to FontSize - get the size of an upper + case letter without ascenders of descenders.+ + * Guide updated regarding the new package @wumpus-basic@.+ -0.18,0 to 0.19.0:+0.18.0 to 0.19.0: * Added @Transform@ type class to apply a matrix transformation directly.@@ -27,7 +49,6 @@ is efficient - no extraneous use of @concat@. * Added wumpus_default_font constant.- 0.17.0 to 0.18.0:
Setup.hs view
@@ -28,3 +28,5 @@ printVersionNumberFile :: IO () printVersionNumberFile = readFile "src/Wumpus/Core/VersionNumber.hs" >>= putStrLn++
− demo/FontPic.hs
@@ -1,171 +0,0 @@-{-# OPTIONS -Wall #-}--module FontPic where--import Wumpus.Core-import Wumpus.Extra.PictureLanguage-import Wumpus.Extra.SafeFonts-import Wumpus.Extra.SVGColours ( steelBlue )-import Wumpus.Extra.X11Colours ( indianRed1 )--import Data.AffineSpace-import Data.VectorSpace--import Data.List ( unfoldr )--import System.Directory--main :: IO ()-main = do - createDirectoryIfMissing True "./out/"- writeEPS_latin1 "./out/font_courier.eps" courier_pic- writeSVG_latin1 "./out/font_courier.svg" courier_pic- writeEPS_latin1 "./out/font_times.eps" times_pic- writeSVG_latin1 "./out/font_times.svg" times_pic- writeEPS_latin1 "./out/font_helvetica.eps" helvetica_pic- writeSVG_latin1 "./out/font_helvetica.svg" helvetica_pic- writeEPS_latin1 "./out/font_symbol.eps" symbol_pic- writeSVG_latin1 "./out/font_symbol.svg" symbol_pic---makeFontLabel :: DRGB -> FontAttr -> (DPoint2 -> DPrimitive)-makeFontLabel c fa = textlabel (c,fa) msg- where- msg = unwords [ font_name fa, (show $ font_size fa) ++ "pt"]--blueLabel :: FontAttr -> (DPoint2 -> DPrimitive)-blueLabel = makeFontLabel steelBlue--redLabel :: FontAttr -> (DPoint2 -> DPrimitive)-redLabel = makeFontLabel indianRed1-------------------------------------------------------------------------------------- Times--times_pic :: Picture Double-times_pic = timesroman_pic -//- timesitalic_pic -//- timesbold_pic- -//- timesbolditalic_pic----timesroman_pic :: Picture Double-timesroman_pic = - frameMulti $ zipWith blueLabel xs (mkPoints 1.5)- where- xs = [ timesRoman10, timesRoman12, timesRoman18- , timesRoman24, timesRoman36, timesRoman48 ]--timesitalic_pic :: Picture Double-timesitalic_pic = - frameMulti $ zipWith redLabel xs (mkPoints 1.5)- where- xs = [ timesItalic10, timesItalic12, timesItalic18- , timesItalic24, timesItalic36, timesItalic48 ]---timesbold_pic :: Picture Double-timesbold_pic = - frameMulti $ zipWith blueLabel xs (mkPoints 1.5)- where- xs = [ timesBold10, timesBold12, timesBold18- , timesBold24, timesBold36, timesBold48 ]--timesbolditalic_pic :: Picture Double-timesbolditalic_pic = - frameMulti $ zipWith redLabel xs (mkPoints 1.5)- where- xs = [ timesBoldItalic10, timesBoldItalic12, timesBoldItalic18- , timesBoldItalic24, timesBoldItalic36, timesBoldItalic48 ]-----------------------------------------------------------------------------------helvetica_pic :: Picture Double-helvetica_pic = helvetica_pic1 -//- helveticaoblique_pic -//- helveticabold_pic- -//- helveticaboldoblique_pic--helvetica_pic1 :: Picture Double-helvetica_pic1 = - frameMulti $ zipWith blueLabel xs (mkPoints 1.5)- where- xs = [ helvetica10, helvetica12, helvetica18- , helvetica24, helvetica36, helvetica48 ]--- -helveticaoblique_pic :: Picture Double-helveticaoblique_pic = - frameMulti $ zipWith redLabel xs (mkPoints 1.5)- where- xs = [ helveticaOblique10, helveticaOblique12, helveticaOblique18- , helveticaOblique24, helveticaOblique36, helveticaOblique48 ]-- -helveticabold_pic :: Picture Double-helveticabold_pic = - frameMulti $ zipWith blueLabel xs (mkPoints 1.5)- where- xs = [ helveticaBold10, helveticaBold12, helveticaBold18- , helveticaBold24, helveticaBold36, helveticaBold48 ]-- -helveticaboldoblique_pic :: Picture Double-helveticaboldoblique_pic = - frameMulti $ zipWith redLabel xs (mkPoints 1.5)- where- xs = [ helveticaBoldOblique10, helveticaBoldOblique12- , helveticaBoldOblique18, helveticaBoldOblique24- , helveticaBoldOblique36, helveticaBoldOblique48 ]------------------------------------------------------------------------------------courier_pic :: Picture Double-courier_pic = courier_pic1 -//- courieroblique_pic -//- courierbold_pic- -//- courierboldoblique_pic- -courier_pic1 :: Picture Double-courier_pic1 = - frameMulti $ zipWith blueLabel xs (mkPoints 1.5)- where- xs = [ courier10, courier12, courier18- , courier24, courier36, courier48 ]-- -courieroblique_pic :: Picture Double-courieroblique_pic = - frameMulti $ zipWith redLabel xs (mkPoints 1.5)- where- xs = [ courierOblique10, courierOblique12, courierOblique18- , courierOblique24, courierOblique36, courierOblique48 ]-- -courierbold_pic :: Picture Double-courierbold_pic = - frameMulti $ zipWith blueLabel xs (mkPoints 1.5)- where- xs = [ courierBold10, courierBold12, courierBold18- , courierBold24, courierBold36, courierBold48 ]-- -courierboldoblique_pic :: Picture Double-courierboldoblique_pic = - frameMulti $ zipWith redLabel xs (mkPoints 1.5)- where- xs = [ courierBoldOblique10, courierBoldOblique12, courierBoldOblique18- , courierBoldOblique24, courierBoldOblique36, courierBoldOblique48 ]------------------------------------------------------------------------------------ -symbol_pic :: Picture Double-symbol_pic = - frameMulti $ zipWith blueLabel xs (mkPoints 1.5)- where- xs = [ symbol10, symbol12, symbol18, symbol24, symbol36, symbol48 ]--------------------------------------------------------------------------------------mkPoints :: Num u => u -> [Point2 u]-mkPoints n = unfoldr phi zeroPt where- phi pt = Just (pt, pt .+^ (V2 0 15 ^* n))
demo/Picture.hs view
@@ -7,6 +7,14 @@ import System.Directory ++main :: IO ()+main = do + createDirectoryIfMissing True "./out/"+ sequence_ [ demo01, demo02, demo03, demo04, demo05+ , demo06, demo07, demo08, demo09, demo10+ , demo11, demo12, demo13, demo14 ]+ peru :: PSRgb peru = RGB3 0.804 0.522 0.247 @@ -197,9 +205,3 @@ small_peru = mkFilledSquare peru 10 `at` P2 10 50 -main :: IO ()-main = do - createDirectoryIfMissing True "./out/"- sequence_ [ demo01, demo02, demo03, demo04, demo05- , demo06, demo07, demo08, demo09, demo10- , demo11, demo12, demo13, demo14 ]
doc-src/Guide.lhs view
@@ -29,12 +29,9 @@ SVG (Scalable Vector Graphics) is supported. \wumpuscore is rather primitive, the basic drawing objects are -paths and text labels. A secondary library \texttt{wumpus-extra} -has been prototyped containing some higher level objects -(arrowheads, etc.), but hasn't been officially released - the code -needs more thought before being put into the wild. Previews are -available from the \texttt{copperbox} project repository -hosted by Googlecode. +paths and text labels. A second library \texttt{wumpus-basic} +contains code for higher level drawing but it is still missing +main functionalities e.g. shapes, arrowheads. Although \wumpuscore is heavily inspired by PostScript it avoids PostScript's notion of an (implicit) current point and the @@ -121,32 +118,13 @@ hidden. \end{description} -The package also contains some extra modules defining -picture composition operators, safe fonts and colour schemes. -These modules would ideally be packaged in a separate package -\texttt{wumpus-extra}, unfortunately the other code in this -package is not yet suitable for wide spread distribution, so -they are currently distributed with \wumpuscore. - -\begin{description} -\item[\texttt{Wumpus.Extra.PictureLanguage.}] -Composition operators for pictures. The operators are somewhat +The package also contains a deprecated module defining +picture composition operators, +\texttt{Wumpus.Extra.PictureLanguage}. The operators are somewhat analogue to the usual operators or pretty-printing libraries, but work in 2D rather than largely horizontally with some -vertical concatenation. - -\item[\texttt{Wumpus.Extra.SafeFonts.}] -Safe to use font and size combinations. The fonts named here are -included with GhostScript and are aliased as \emph{safe} fonts -for SVG. - -\item[\texttt{Wumpus.Extra.SVGColours.}] -All the SVG named colours. - -\item[\texttt{Wumpus.Extra.SafeFonts.}] -All the X11 named colours. - -\end{description} +vertical concatenation. At some point in the future +\texttt{wumpus-basic} should supercede this module. %----------------------------------------------------------------- \section{Drawing model} @@ -289,8 +267,9 @@ with the \texttt{frame} function to the Picture type. The following table lists PostScript fonts and their SVG -equivalents. As of revision 0.15.0 \wumpuscore includes a module -\texttt{Wumpus.Extra.SafeFonts} encoding the fonts in this list +equivalents. As of revision 0.20.0, the package +\texttt{wumpus-basic} includes a module +\texttt{Wumpus.Basic.SafeFonts} encoding the fonts in this list to avoid typographical slips...
doc/Guide.pdf view
binary file changed (56843 → 56223 bytes)
src/Wumpus/Core/BoundingBox.hs view
@@ -36,8 +36,8 @@ , bbox , obbox , union - , trace- , retrace+ , traceBoundary+ , retraceBoundary , corners , within@@ -100,7 +100,7 @@ type instance DUnit (BoundingBox u) = u instance (Num u, Ord u) => Scale (BoundingBox u) where- scale x y bb = trace $ map (scale x y) $ [bl,br,tr,tl]+ scale x y bb = traceBoundary $ map (scale x y) $ [bl,br,tr,tl] where (bl,br,tr,tl) = corners bb @@ -156,9 +156,10 @@ -- 'trace' throws a run-time error when supplied with the empty -- list. ---trace :: (Num u, Ord u) => [Point2 u] -> BoundingBox u-trace (p:ps) = uncurry BBox $ foldr (\z (a,b) -> (minPt z a, maxPt z b) ) (p,p) ps-trace [] = error $ "BoundingBox.trace called in empty list"+traceBoundary :: (Num u, Ord u) => [Point2 u] -> BoundingBox u+traceBoundary (p:ps) = + uncurry BBox $ foldr (\z (a,b) -> (minPt z a, maxPt z b) ) (p,p) ps+traceBoundary [] = error $ "BoundingBox.trace called in empty list" -- | Perform the supplied transformation on the four corners of -- the bounding box. Trace the new corners to calculate the @@ -167,9 +168,9 @@ -- This helper function can be used to re-calculate a bounding -- box after a rotation for example. ---retrace :: (Num u, Ord u) +retraceBoundary :: (Num u, Ord u) => (Point2 u -> Point2 u) -> BoundingBox u -> BoundingBox u-retrace f = trace . map f . fromCorners . corners+retraceBoundary f = traceBoundary . map f . fromCorners . corners where fromCorners (bl,br,tr,tl) = [bl,br,tr,tl]
src/Wumpus/Core/FontSize.hs view
@@ -10,12 +10,12 @@ -- Stability : unstable -- Portability : GHC with TypeFamilies and more ----- Font size calculation for Label\'s bounding boxes.+-- Font size calculation for Label\'s and their bounding boxes. -- --- Calculations are based on metrics derived from Courier at 48 --- pt. As Courier is a monospaced font, bounding boxes calculated --- for other font families will usually have longer width than is--- necessary for the printed text. +-- Calculations are based on metrics derived from Courier at +-- 48pt. As Courier is a monospaced font, bounding boxes +-- calculated for other font families will usually have longer +-- width than is necessary for the printed text. -- -- This is a deficiency of Wumpus, but alternatives would have -- significant implementation complexity.@@ -41,6 +41,7 @@ , widthAt48pt , textWidth , textHeight+ , capHeight , descenderDepth , textBounds @@ -49,7 +50,7 @@ import Wumpus.Core.BoundingBox import Wumpus.Core.Geometry -import Data.AffineSpace -- vector-space+import Data.AffineSpace -- package: vector-space type CharCount = Int type FontSize = Int@@ -57,6 +58,7 @@ -- | The width of a letter in Courier at 48 pt. -- -- The value is not entirely accurate but it is satisfactory.+-- courier48_width :: Num u => u courier48_width = 26 @@ -67,6 +69,7 @@ -- The value is not entirely accurate but it is satisfactory - -- some letters are taller than others (e.g. numbers are taller -- then capitals).+-- courier48_body_height :: Num u => u courier48_body_height = 30 @@ -99,18 +102,21 @@ -- | Width of the supplied string when printed at 48pt.+-- widthAt48pt :: Fractional u => CharCount -> u widthAt48pt n = courier48_width * len + courier48_spacer_width * len_sub where len = fromIntegral n len_sub = len - 1.0 ---- | Text width at @sz@ point size of the string @s@. All+-- | Text width at @sz@ point size of the string @s@. All -- characters are counted literally - special chars may cause -- problems (this a current deficiency of Wumpus).+-- textWidth :: Fractional u => FontSize -> CharCount -> u textWidth sz n = (fromIntegral sz)/48 * widthAt48pt n + -- | Text height is just identity/double-coercion, i.e. -- @18 == 18.0@. The /size/ of a font is the maximum height: --@@ -118,6 +124,12 @@ -- textHeight :: Num u => FontSize -> u textHeight = fromIntegral++-- The height of an upper case letter (without ascender or +-- descender).+--+capHeight :: Fractional u => FontSize -> u+capHeight sz = textHeight sz - (2 * descenderDepth sz) -- | Descender depth for font size @sz@. --
src/Wumpus/Core/Picture.hs view
@@ -503,11 +503,11 @@ -- | 'picOver' : @ picture -> picture -> picture @ ----- Draw the first picture on to off the second picture - +-- Draw the first picture on top of the second picture - -- neither picture will be moved. -- picOver :: (Num u, Ord u) => Picture u -> Picture u -> Picture u-a `picOver` b = Picture (ortho zeroPt, bb) (cons b $ one a) +a `picOver` b = Picture (ortho zeroPt, bb) (cons a $ one b) where bb = union (boundary a) (boundary b)
src/Wumpus/Core/PictureInternal.hs view
@@ -404,7 +404,7 @@ -- For instance after a reflection in the y-axis br becomes bl. transformBBox :: (Num u, Ord u) => (Point2 u -> Point2 u) -> BoundingBox u -> BoundingBox u-transformBBox fp bb = trace $ map fp $ [bl,br,tl,tr]+transformBBox fp bb = traceBoundary $ map fp $ [bl,br,tl,tr] where (bl,br,tr,tl) = corners bb @@ -494,7 +494,7 @@ boundary (Clip (_,bb) _ _) = bb instance (Num u, Ord u) => Boundary (Path u) where- boundary (Path st xs) = trace $ st : foldr f [] xs where+ boundary (Path st xs) = traceBoundary $ st : foldr f [] xs where f (PLineTo p1) acc = p1 : acc f (PCurveTo p1 p2 p3) acc = p1 : p2 : p3 : acc @@ -509,7 +509,8 @@ primLabelBoundary :: (Fractional u, Ord u) => FontAttr -> Label u -> BoundingBox u-primLabelBoundary attr (Label pt xs ctm) = retrace (ctm *#) untraf_bbox+primLabelBoundary attr (Label pt xs ctm) = + retraceBoundary (ctm *#) untraf_bbox where untraf_bbox = textBounds (font_size attr) pt char_count char_count = textLength xs@@ -527,7 +528,7 @@ -- ellipseBoundary :: (Floating u, Ord u) => PrimEllipse u -> BoundingBox u-ellipseBoundary = trace . ellipseControlPoints+ellipseBoundary = traceBoundary . ellipseControlPoints -- PROBLEM: -- Currently a rotated circle has a different BBox to a
src/Wumpus/Core/VersionNumber.hs view
@@ -22,4 +22,4 @@ wumpus_core_version :: (Int,Int,Int)-wumpus_core_version = (0,19,0)+wumpus_core_version = (0,20,0)
− src/Wumpus/Extra/SVGColours.hs
@@ -1,626 +0,0 @@-{-# OPTIONS -Wall #-}------------------------------------------------------------------------------------- |--- Module : Wumpus.Extra.SVGColours--- Copyright : (c) Stephen Tetley 2009-2010--- License : BSD3------ Maintainer : Stephen Tetley <stephen.tetley@gmail.com>--- Stability : highly unstable--- Portability : GHC with TypeFamilies and more------ The SVG \'named colours\', but as rgb [0,1] values --------------------------------------------------------------------------------------module Wumpus.Extra.SVGColours - (- - -- * Named colours- aliceBlue- , antiqueWhite- , aqua- , aquamarine- , azure- , beige- , bisque- , black- , blanchedAlmond- , blue- , blueViolet- , brown- , burlywood- , cadetBlue- , chartreuse- , chocolate- , coral- , cornflowerBlue- , cornsilk- , crimson- , cyan- , darkBlue- , darkCyan- , darkGoldenrod- , darkGray- , darkGreen- , darkGrey- , darkKhaki- , darkMagenta- , darkOliveGreen- , darkOrange- , darkOrchid- , darkRed- , darkSalmon- , darkSeaGreen- , darkSlateBlue- , darkSlateGray- , darkSlateGrey- , darkTurquoise- , darkViolet- , deepPink- , deepSkyBlue- , dimGray- , dimGrey- , dodgerBlue- , firebrick- , floralWhite- , forestGreen- , fuchsia- , gainsboro- , ghostWhite- , gold- , goldenrod- , gray- , grey- , green- , greenYellow- , honeydew- , hotPink- , indianRed- , indigo- , ivory- , khaki- , lavender- , lavenderBlush- , lawnGreen- , lemonChiffon- , lightBlue- , lightCoral- , lightCyan- , lightGoldenrodYellow- , lightGray- , lightGreen- , lightGrey- , lightPink- , lightSalmon- , lightSeaGreen- , lightSkyBlue- , lightSlateGray- , lightSlateGrey- , lightSteelBlue- , lightYellow- , lime- , limeGreen- , linen- , magenta- , maroon- , mediumAquamarine- , mediumBlue- , mediumOrchid- , mediumPurple- , mediumSeaGreen- , mediumSlateBlue- , mediumSpringGreen- , mediumTurquoise- , mediumVioletRed- , midnightBlue- , mintcream- , mistyrose- , moccasin- , navajoWhite- , navy- , oldlace- , olive- , oliveDrab- , orange- , orangeRed- , orchid- , paleGoldenrod- , paleGreen- , paleTurquoise- , paleVioletRed- , papayawhip- , peachpuff- , peru- , pink- , plum- , powderBlue- , purple- , red- , rosyBrown- , royalBlue- , saddleBrown- , salmon- , sandyBrown- , seaGreen- , seashell- , sienna- , silver- , skyBlue- , slateBlue- , slateGray- , slateGrey- , snow- , springGreen- , steelBlue- , tan- , teal- , thistle- , tomato- , turquoise- , violet- , wheat- , white- , whitesmoke- , yellow- , yellowGreen- - ) where---import Wumpus.Core.Colour ( RGB3(..), DRGB )---import Prelude ( )- ------------------------------------------------------------------------------------- -aliceBlue :: DRGB-aliceBlue = RGB3 0.941 0.973 1.0--antiqueWhite :: DRGB-antiqueWhite = RGB3 0.980 0.922 0.843--aqua :: DRGB-aqua = RGB3 0.0 1.0 1.0--aquamarine :: DRGB-aquamarine = RGB3 0.498 1.0 0.831--azure :: DRGB-azure = RGB3 0.941 1.0 1.0--beige :: DRGB -beige = RGB3 0.961 0.961 0.863--bisque :: DRGB-bisque = RGB3 1.0 0.894 0.769--black :: DRGB-black = RGB3 0.0 0.0 0.0--blanchedAlmond :: DRGB-blanchedAlmond = RGB3 1.0 0.922 0.804--blue :: DRGB-blue = RGB3 0.0 0.0 1.0--blueViolet :: DRGB-blueViolet = RGB3 0.541 0.169 0.886--brown :: DRGB-brown = RGB3 0.647 0.165 0.165--burlywood :: DRGB-burlywood = RGB3 0.871 0.722 0.529--cadetBlue :: DRGB-cadetBlue = RGB3 0.373 0.620 0.627--chartreuse :: DRGB-chartreuse = RGB3 0.498 1.0 0.0--chocolate :: DRGB-chocolate = RGB3 0.824 0.412 0.118--coral :: DRGB-coral = RGB3 1.0 0.498 0.314--cornflowerBlue :: DRGB-cornflowerBlue = RGB3 0.392 0.584 0.929--cornsilk :: DRGB-cornsilk = RGB3 1.0 0.973 0.863--crimson :: DRGB-crimson = RGB3 0.863 0.078 0.235--cyan :: DRGB-cyan = RGB3 0.0 1.0 1.0--darkBlue :: DRGB-darkBlue = RGB3 0.0 0.0 0.545--darkCyan :: DRGB-darkCyan = RGB3 0.0 0.545 0.545--darkGoldenrod :: DRGB-darkGoldenrod = RGB3 0.722 0.545 0.043--darkGray :: DRGB-darkGray = RGB3 0.663 0.663 0.663--darkGreen :: DRGB-darkGreen = RGB3 0.0 0.392 0.0--darkGrey :: DRGB-darkGrey = RGB3 0.663 0.663 0.663--darkKhaki :: DRGB-darkKhaki = RGB3 0.741 0.718 0.420--darkMagenta :: DRGB-darkMagenta = RGB3 0.545 0.0 0.545--darkOliveGreen :: DRGB-darkOliveGreen = RGB3 0.333 0.420 0.184--darkOrange :: DRGB-darkOrange = RGB3 1.0 0.549 0.0--darkOrchid :: DRGB-darkOrchid = RGB3 0.600 0.196 0.800--darkRed :: DRGB-darkRed = RGB3 0.545 0.0 0.0--darkSalmon :: DRGB-darkSalmon = RGB3 0.914 0.588 0.478--darkSeaGreen :: DRGB-darkSeaGreen = RGB3 0.561 0.737 0.561--darkSlateBlue :: DRGB-darkSlateBlue = RGB3 0.282 0.239 0.545--darkSlateGray :: DRGB-darkSlateGray = RGB3 0.184 0.310 0.310--darkSlateGrey :: DRGB-darkSlateGrey = RGB3 0.184 0.310 0.310--darkTurquoise :: DRGB-darkTurquoise = RGB3 0.0 0.808 0.820--darkViolet :: DRGB-darkViolet = RGB3 0.580 0.0 0.827--deepPink :: DRGB-deepPink = RGB3 1.0 0.078 0.576--deepSkyBlue :: DRGB-deepSkyBlue = RGB3 0.0 0.750 1.0--dimGray :: DRGB-dimGray = RGB3 0.412 0.412 0.412--dimGrey :: DRGB-dimGrey = RGB3 0.412 0.412 0.412--dodgerBlue :: DRGB-dodgerBlue = RGB3 0.118 0.565 1.0--firebrick :: DRGB-firebrick = RGB3 0.698 0.133 0.133--floralWhite :: DRGB-floralWhite = RGB3 1.0 0.980 0.941--forestGreen :: DRGB-forestGreen = RGB3 0.133 0.545 0.133--fuchsia :: DRGB-fuchsia = RGB3 1.0 0.0 1.0--gainsboro :: DRGB-gainsboro = RGB3 0.863 0.863 0.863--ghostWhite :: DRGB-ghostWhite = RGB3 0.973 0.973 1.0--gold :: DRGB-gold = RGB3 1.0 0.843 0.0--goldenrod :: DRGB-goldenrod = RGB3 0.855 0.647 0.125--gray :: DRGB-gray = RGB3 0.5 0.5 0.5--grey :: DRGB-grey = RGB3 0.5 0.5 0.5--green :: DRGB-green = RGB3 0.0 0.5 0.0--greenYellow :: DRGB-greenYellow = RGB3 0.678 1.0 0.184--honeydew :: DRGB-honeydew = RGB3 0.941 1.0 0.941--hotPink :: DRGB-hotPink = RGB3 1.0 0.412 0.706--indianRed :: DRGB-indianRed = RGB3 0.804 0.361 0.361--indigo :: DRGB-indigo = RGB3 0.294 0.0 0.510--ivory :: DRGB-ivory = RGB3 1.0 1.0 0.941--khaki :: DRGB-khaki = RGB3 0.941 0.902 0.549--lavender :: DRGB-lavender = RGB3 0.902 0.902 0.980--lavenderBlush :: DRGB-lavenderBlush = RGB3 1.0 0.941 0.961--lawnGreen :: DRGB-lawnGreen = RGB3 0.486 0.988 0.0--lemonChiffon :: DRGB-lemonChiffon = RGB3 1.0 0.980 0.804--lightBlue :: DRGB-lightBlue = RGB3 0.678 0.847 0.902--lightCoral :: DRGB-lightCoral = RGB3 0.941 0.5 0.5--lightCyan :: DRGB-lightCyan = RGB3 0.878 1.0 1.0--lightGoldenrodYellow :: DRGB-lightGoldenrodYellow = RGB3 0.980 0.980 0.824--lightGray :: DRGB-lightGray = RGB3 0.827 0.827 0.827--lightGreen :: DRGB-lightGreen = RGB3 0.565 0.933 0.565--lightGrey :: DRGB-lightGrey = RGB3 0.827 0.827 0.827--lightPink :: DRGB-lightPink = RGB3 1.0 0.714 0.757--lightSalmon :: DRGB-lightSalmon = RGB3 1.0 0.627 0.478--lightSeaGreen :: DRGB-lightSeaGreen = RGB3 0.125 0.698 0.666--lightSkyBlue :: DRGB-lightSkyBlue = RGB3 0.529 0.808 0.980--lightSlateGray :: DRGB-lightSlateGray = RGB3 0.466 0.533 0.600--lightSlateGrey :: DRGB-lightSlateGrey = RGB3 0.466 0.533 0.600--lightSteelBlue :: DRGB-lightSteelBlue = RGB3 0.690 0.769 0.871--lightYellow :: DRGB-lightYellow = RGB3 1.0 1.0 0.878--lime :: DRGB-lime = RGB3 0.0 1.0 0.0--limeGreen :: DRGB-limeGreen = RGB3 0.196 0.804 0.196--linen :: DRGB-linen = RGB3 0.980 0.941 0.902--magenta :: DRGB-magenta = RGB3 1.0 0.0 1.0--maroon :: DRGB-maroon = RGB3 0.5 0.0 0.0--mediumAquamarine :: DRGB-mediumAquamarine = RGB3 0.4 0.804 0.666--mediumBlue :: DRGB-mediumBlue = RGB3 0.0 0.0 0.804--mediumOrchid :: DRGB-mediumOrchid = RGB3 0.729 0.333 0.827--mediumPurple :: DRGB-mediumPurple = RGB3 0.576 0.439 0.859--mediumSeaGreen :: DRGB-mediumSeaGreen = RGB3 0.235 0.702 0.443--mediumSlateBlue :: DRGB-mediumSlateBlue = RGB3 0.482 0.408 0.933--mediumSpringGreen :: DRGB-mediumSpringGreen = RGB3 0.0 0.980 0.604--mediumTurquoise :: DRGB-mediumTurquoise = RGB3 0.282 0.820 0.800--mediumVioletRed :: DRGB-mediumVioletRed = RGB3 0.780 0.082 0.522--midnightBlue :: DRGB-midnightBlue = RGB3 0.098 0.098 0.439--mintcream :: DRGB-mintcream = RGB3 0.961 1.0 0.980--mistyrose :: DRGB-mistyrose = RGB3 1.0 0.894 0.882--moccasin :: DRGB-moccasin = RGB3 1.0 0.894 0.710--navajoWhite :: DRGB-navajoWhite = RGB3 1.0 0.871 0.678--navy :: DRGB-navy = RGB3 0.0 0.0 0.5--oldlace :: DRGB-oldlace = RGB3 0.992 0.961 0.902--olive :: DRGB-olive = RGB3 0.5 0.5 0.0--oliveDrab :: DRGB-oliveDrab = RGB3 0.420 0.557 0.137--orange :: DRGB-orange = RGB3 1.0 0.647 0.0--orangeRed :: DRGB-orangeRed = RGB3 1.0 0.271 0.0--orchid :: DRGB-orchid = RGB3 0.855 0.439 0.839--paleGoldenrod :: DRGB-paleGoldenrod = RGB3 0.933 0.910 0.666--paleGreen :: DRGB-paleGreen = RGB3 0.596 0.984 0.596--paleTurquoise :: DRGB-paleTurquoise = RGB3 0.686 0.933 0.933--paleVioletRed :: DRGB-paleVioletRed = RGB3 0.859 0.439 0.576--papayawhip :: DRGB-papayawhip = RGB3 1.0 0.937 0.835--peachpuff :: DRGB-peachpuff = RGB3 1.0 0.855 0.725--peru :: DRGB-peru = RGB3 0.804 0.522 0.247--pink :: DRGB-pink = RGB3 1.0 0.753 0.796--plum :: DRGB-plum = RGB3 0.867 0.627 0.867--powderBlue :: DRGB-powderBlue = RGB3 0.690 0.878 0.902--purple :: DRGB-purple = RGB3 0.5 0.0 0.5--red :: DRGB-red = RGB3 1.0 0.0 0.0--rosyBrown :: DRGB-rosyBrown = RGB3 0.737 0.561 0.561--royalBlue :: DRGB-royalBlue = RGB3 0.255 0.412 0.882--saddleBrown :: DRGB-saddleBrown = RGB3 0.545 0.271 0.075--salmon :: DRGB-salmon = RGB3 0.980 0.5 0.447--sandyBrown :: DRGB-sandyBrown = RGB3 0.957 0.643 0.376--seaGreen :: DRGB-seaGreen = RGB3 0.180 0.545 0.341--seashell :: DRGB-seashell = RGB3 1.0 0.961 0.933--sienna :: DRGB-sienna = RGB3 0.627 0.322 0.176--silver :: DRGB-silver = RGB3 0.753 0.753 0.753--skyBlue :: DRGB-skyBlue = RGB3 0.529 0.808 0.922--slateBlue :: DRGB-slateBlue = RGB3 0.416 0.353 0.804--slateGray :: DRGB-slateGray = RGB3 0.439 0.5 0.565--slateGrey :: DRGB-slateGrey = RGB3 0.439 0.5 0.565--snow :: DRGB-snow = RGB3 1.0 0.980 0.980--springGreen :: DRGB-springGreen = RGB3 0.0 1.0 0.498--steelBlue :: DRGB-steelBlue = RGB3 0.275 0.510 0.706--tan :: DRGB-tan = RGB3 0.824 0.706 0.549--teal :: DRGB-teal = RGB3 0.0 0.5 0.5--thistle :: DRGB-thistle = RGB3 0.847 0.750 0.847--tomato :: DRGB-tomato = RGB3 1.0 0.388 0.278--turquoise :: DRGB-turquoise = RGB3 0.251 0.878 0.816--violet :: DRGB-violet = RGB3 0.933 0.510 0.933--wheat :: DRGB-wheat = RGB3 0.961 0.871 0.702--white :: DRGB-white = RGB3 1.0 1.0 1.0--whitesmoke :: DRGB-whitesmoke = RGB3 0.961 0.961 0.961--yellow :: DRGB-yellow = RGB3 1.0 1.0 0.0--yellowGreen :: DRGB-yellowGreen = RGB3 0.604 0.804 0.196-----
− src/Wumpus/Extra/SafeFonts.hs
@@ -1,459 +0,0 @@-{-# OPTIONS -Wall #-}------------------------------------------------------------------------------------- |--- Module : Wumpus.Extra.SafeFonts--- Copyright : (c) Stephen Tetley 2009-2010--- License : BSD3------ Maintainer : Stephen Tetley <stephen.tetley@gmail.com>--- Stability : highly unstable--- Portability : GHC with TypeFamilies and more------ Safe to use font / size combinations.------ Using fonts at other sizes than the ones enumerated in this --- module may case unusual rendering errors, consider drawing --- at a standard size then uniform-scaling for other sizes in --- PostScript.--------------------------------------------------------------------------------------module Wumpus.Extra.SafeFonts- ( - -- * Times Roman- timesRoman10- , timesRoman12- , timesRoman18- , timesRoman24- , timesRoman36- , timesRoman48-- , timesItalic10- , timesItalic12- , timesItalic18- , timesItalic24- , timesItalic36- , timesItalic48-- , timesBold10- , timesBold12- , timesBold18- , timesBold24- , timesBold36- , timesBold48-- , timesBoldItalic10- , timesBoldItalic12- , timesBoldItalic18- , timesBoldItalic24- , timesBoldItalic36- , timesBoldItalic48-- -- * Helvetica- , helvetica10- , helvetica12- , helvetica18- , helvetica24- , helvetica36- , helvetica48-- , helveticaOblique10- , helveticaOblique12- , helveticaOblique18- , helveticaOblique24- , helveticaOblique36 - , helveticaOblique48-- , helveticaBold10- , helveticaBold12- , helveticaBold18- , helveticaBold24- , helveticaBold36- , helveticaBold48-- , helveticaBoldOblique10- , helveticaBoldOblique12- , helveticaBoldOblique18- , helveticaBoldOblique24- , helveticaBoldOblique36- , helveticaBoldOblique48-- -- * Courier- , courier10- , courier12- , courier18- , courier24- , courier36- , courier48-- , courierOblique10- , courierOblique12- , courierOblique18- , courierOblique24- , courierOblique36- , courierOblique48-- , courierBold10- , courierBold12- , courierBold18- , courierBold24- , courierBold36- , courierBold48-- , courierBoldOblique10- , courierBoldOblique12- , courierBoldOblique18- , courierBoldOblique24- , courierBoldOblique36- , courierBoldOblique48-- -- * Symbol- -- $symboldoc- , symbol10- , symbol12- , symbol18- , symbol24- , symbol36- , symbol48-- ) where----import Wumpus.Core--{--- Times-Roman Times-Italic Times-Bold Times-BoldItalic- Helvetica Helvetica-Oblique Helvetica-Bold Helvetica-Bold-Oblique- Courier Courier-Oblique Courier-Bold Courier-Bold-Oblique- Symbol---}------------------------------------------------------------------------------------ Times-Roman--mkTimesRoman :: Int -> FontAttr-mkTimesRoman = FontAttr "Times-Roman" "Times New Roman" SVG_REGULAR--timesRoman10 :: FontAttr-timesRoman10 = mkTimesRoman 10--timesRoman12 :: FontAttr-timesRoman12 = mkTimesRoman 12--timesRoman18 :: FontAttr-timesRoman18 = mkTimesRoman 18--timesRoman24 :: FontAttr-timesRoman24 = mkTimesRoman 24--timesRoman36 :: FontAttr-timesRoman36 = mkTimesRoman 36--timesRoman48 :: FontAttr-timesRoman48 = mkTimesRoman 48---- Times Italic--mkTimesItalic :: Int -> FontAttr-mkTimesItalic = FontAttr "Times-Italic" "Times New Roman" SVG_ITALIC--timesItalic10 :: FontAttr-timesItalic10 = mkTimesItalic 10--timesItalic12 :: FontAttr-timesItalic12 = mkTimesItalic 12--timesItalic18 :: FontAttr-timesItalic18 = mkTimesItalic 18--timesItalic24 :: FontAttr-timesItalic24 = mkTimesItalic 24--timesItalic36 :: FontAttr-timesItalic36 = mkTimesItalic 36--timesItalic48 :: FontAttr-timesItalic48 = mkTimesItalic 48---- Times Bold--mkTimesBold :: Int -> FontAttr-mkTimesBold = FontAttr "Times-Bold" "Times New Roman" SVG_BOLD--timesBold10 :: FontAttr-timesBold10 = mkTimesBold 10--timesBold12 :: FontAttr-timesBold12 = mkTimesBold 12--timesBold18 :: FontAttr-timesBold18 = mkTimesBold 18--timesBold24 :: FontAttr-timesBold24 = mkTimesBold 24--timesBold36 :: FontAttr-timesBold36 = mkTimesBold 36--timesBold48 :: FontAttr-timesBold48 = mkTimesBold 48---- Times Bold Italic--mkTimesBoldItalic :: Int -> FontAttr-mkTimesBoldItalic = - FontAttr "Times-BoldItalic" "Times New Roman" SVG_BOLD_ITALIC--timesBoldItalic10 :: FontAttr-timesBoldItalic10 = mkTimesBoldItalic 10--timesBoldItalic12 :: FontAttr-timesBoldItalic12 = mkTimesBoldItalic 12--timesBoldItalic18 :: FontAttr-timesBoldItalic18 = mkTimesBoldItalic 18--timesBoldItalic24 :: FontAttr-timesBoldItalic24 = mkTimesBoldItalic 24--timesBoldItalic36 :: FontAttr-timesBoldItalic36 = mkTimesBoldItalic 36--timesBoldItalic48 :: FontAttr-timesBoldItalic48 = mkTimesBoldItalic 48-------------------------------------------------------------------------------------- Helvetica--mkHelvetica :: Int -> FontAttr-mkHelvetica = FontAttr "Helvetica" "Helvetica" SVG_REGULAR---helvetica10 :: FontAttr-helvetica10 = mkHelvetica 10--helvetica12 :: FontAttr-helvetica12 = mkHelvetica 12--helvetica18 :: FontAttr-helvetica18 = mkHelvetica 18--helvetica24 :: FontAttr-helvetica24 = mkHelvetica 24--helvetica36 :: FontAttr-helvetica36 = mkHelvetica 36--helvetica48 :: FontAttr-helvetica48 = mkHelvetica 48---- Helvetica Oblique--mkHelveticaOblique :: Int -> FontAttr-mkHelveticaOblique = FontAttr "Helvetica-Oblique" "Helvetica" SVG_OBLIQUE---helveticaOblique10 :: FontAttr-helveticaOblique10 = mkHelveticaOblique 10--helveticaOblique12 :: FontAttr-helveticaOblique12 = mkHelveticaOblique 12--helveticaOblique18 :: FontAttr-helveticaOblique18 = mkHelveticaOblique 18--helveticaOblique24 :: FontAttr-helveticaOblique24 = mkHelveticaOblique 24--helveticaOblique36 :: FontAttr-helveticaOblique36 = mkHelveticaOblique 36--helveticaOblique48 :: FontAttr-helveticaOblique48 = mkHelveticaOblique 48----- Helvetica Bold--mkHelveticaBold :: Int -> FontAttr-mkHelveticaBold = FontAttr "Helvetica-Bold" "Helvetica" SVG_BOLD---helveticaBold10 :: FontAttr-helveticaBold10 = mkHelveticaBold 10--helveticaBold12 :: FontAttr-helveticaBold12 = mkHelveticaBold 12--helveticaBold18 :: FontAttr-helveticaBold18 = mkHelveticaBold 18--helveticaBold24 :: FontAttr-helveticaBold24 = mkHelveticaBold 24--helveticaBold36 :: FontAttr-helveticaBold36 = mkHelveticaBold 36--helveticaBold48 :: FontAttr-helveticaBold48 = mkHelveticaBold 48---- Helvetica Bold Oblique--mkHelveticaBoldOblique :: Int -> FontAttr-mkHelveticaBoldOblique = - FontAttr "Helvetica-Bold-Oblique" "Helvetica" SVG_BOLD_OBLIQUE---helveticaBoldOblique10 :: FontAttr-helveticaBoldOblique10 = mkHelveticaBoldOblique 10--helveticaBoldOblique12 :: FontAttr-helveticaBoldOblique12 = mkHelveticaBoldOblique 12--helveticaBoldOblique18 :: FontAttr-helveticaBoldOblique18 = mkHelveticaBoldOblique 18--helveticaBoldOblique24 :: FontAttr-helveticaBoldOblique24 = mkHelveticaBoldOblique 24--helveticaBoldOblique36 :: FontAttr-helveticaBoldOblique36 = mkHelveticaBoldOblique 36--helveticaBoldOblique48 :: FontAttr-helveticaBoldOblique48 = mkHelveticaBoldOblique 48---------------------------------------------------------------------------------------- Courier--mkCourier :: Int -> FontAttr-mkCourier = FontAttr "Courier" "Courier New" SVG_REGULAR--courier10 :: FontAttr-courier10 = mkCourier 10--courier12 :: FontAttr-courier12 = mkCourier 12--courier18 :: FontAttr-courier18 = mkCourier 18--courier24 :: FontAttr-courier24 = mkCourier 24--courier36 :: FontAttr-courier36 = mkCourier 36--courier48 :: FontAttr-courier48 = mkCourier 48---- Courier Oblique--mkCourierOblique :: Int -> FontAttr-mkCourierOblique = FontAttr "Courier-Oblique" "Courier New" SVG_OBLIQUE---courierOblique10 :: FontAttr-courierOblique10 = mkCourierOblique 10--courierOblique12 :: FontAttr-courierOblique12 = mkCourierOblique 12--courierOblique18 :: FontAttr-courierOblique18 = mkCourierOblique 18--courierOblique24 :: FontAttr-courierOblique24 = mkCourierOblique 24--courierOblique36 :: FontAttr-courierOblique36 = mkCourierOblique 36--courierOblique48 :: FontAttr-courierOblique48 = mkCourierOblique 48---- Courier Bold--mkCourierBold :: Int -> FontAttr-mkCourierBold = FontAttr "Courier-Bold" "Courier New" SVG_BOLD---courierBold10 :: FontAttr-courierBold10 = mkCourierBold 10--courierBold12 :: FontAttr-courierBold12 = mkCourierBold 12--courierBold18 :: FontAttr-courierBold18 = mkCourierBold 18--courierBold24 :: FontAttr-courierBold24 = mkCourierBold 24--courierBold36 :: FontAttr-courierBold36 = mkCourierBold 36--courierBold48 :: FontAttr-courierBold48 = mkCourierBold 48---- Courier Bold Oblique--mkCourierBoldOblique :: Int -> FontAttr-mkCourierBoldOblique = - FontAttr "Courier-Bold-Oblique" "Courier New" SVG_BOLD_OBLIQUE---courierBoldOblique10 :: FontAttr-courierBoldOblique10 = mkCourierBoldOblique 10--courierBoldOblique12 :: FontAttr-courierBoldOblique12 = mkCourierBoldOblique 12--courierBoldOblique18 :: FontAttr-courierBoldOblique18 = mkCourierBoldOblique 18--courierBoldOblique24 :: FontAttr-courierBoldOblique24 = mkCourierBoldOblique 24--courierBoldOblique36 :: FontAttr-courierBoldOblique36 = mkCourierBoldOblique 36--courierBoldOblique48 :: FontAttr-courierBoldOblique48 = mkCourierBoldOblique 48------------------------------------------------------------------------------------- Symbol---- $symboldoc--- Symbol does not appear to be well supported by SVG.--- It renders in Chrome but not in Firefox.--mkSymbol :: Int -> FontAttr-mkSymbol = FontAttr "Symbol" "Symbol" SVG_REGULAR---symbol10 :: FontAttr-symbol10 = mkSymbol 10--symbol12 :: FontAttr-symbol12 = mkSymbol 12--symbol18 :: FontAttr-symbol18 = mkSymbol 18--symbol24 :: FontAttr-symbol24 = mkSymbol 24--symbol36 :: FontAttr-symbol36 = mkSymbol 36--symbol48 :: FontAttr-symbol48 = mkSymbol 48----
− src/Wumpus/Extra/X11Colours.hs
@@ -1,1060 +0,0 @@-{-# OPTIONS -Wall #-}------------------------------------------------------------------------------------- |--- Module : Wumpus.Extra.X11Colours--- Copyright : (c) Stephen Tetley 2009-2010--- License : BSD3------ Maintainer : Stephen Tetley <stephen.tetley@gmail.com>--- Stability : highly unstable--- Portability : GHC with TypeFamilies and more------ The X11 \'named colours\', but as rgb [0,1] values --------------------------------------------------------------------------------------module Wumpus.Extra.X11Colours- ( - - -- * Named X11 colours- antiqueWhite1- , antiqueWhite2- , antiqueWhite3- , antiqueWhite4- , aquamarine1- , aquamarine2- , aquamarine3- , aquamarine4- , azure1- , azure2- , azure3- , azure4- , bisque1- , bisque2- , bisque3- , bisque4- , blue1- , blue2- , blue3- , blue4- , brown1- , brown2- , brown3- , brown4- , burlywood1- , burlywood2- , burlywood3- , burlywood4- , cadetBlue1- , cadetBlue2- , cadetBlue3- , cadetBlue4- , chartreuse1- , chartreuse2- , chartreuse3- , chartreuse4- , chocolate1- , chocolate2- , chocolate3- , chocolate4- , coral1- , coral2- , coral3- , coral4- , cornsilk1- , cornsilk2- , cornsilk3- , cornsilk4- , cyan1- , cyan2- , cyan3- , cyan4- , darkGoldenrod1- , darkGoldenrod2- , darkGoldenrod3- , darkGoldenrod4- , darkOliveGreen1- , darkOliveGreen2- , darkOliveGreen3- , darkOliveGreen4- , darkOrange1- , darkOrange2- , darkOrange3- , darkOrange4- , darkOrchid1- , darkOrchid2- , darkOrchid3- , darkOrchid4- , darkSeaGreen1- , darkSeaGreen2- , darkSeaGreen3- , darkSeaGreen4- , darkSlateGray1- , darkSlateGray2- , darkSlateGray3- , darkSlateGray4- , deepPink1- , deepPink2- , deepPink3- , deepPink4- , deepSkyBlue1- , deepSkyBlue2- , deepSkyBlue3- , deepSkyBlue4- , dodgerBlue1- , dodgerBlue2- , dodgerBlue3- , dodgerBlue4- , firebrick1- , firebrick2- , firebrick3- , firebrick4- , gold1- , gold2- , gold3- , gold4- , goldenrod1- , goldenrod2- , goldenrod3- , goldenrod4- , green1- , green2- , green3- , green4- , honeydew1- , honeydew2- , honeydew3- , honeydew4- , hotPink1- , hotPink2- , hotPink3- , hotPink4- , indianRed1- , indianRed2- , indianRed3- , indianRed4- , ivory1- , ivory2- , ivory3- , ivory4- , khaki1- , khaki2- , khaki3- , khaki4- , lavenderBlush1- , lavenderBlush2- , lavenderBlush3- , lavenderBlush4- , lemonChiffon1- , lemonChiffon2- , lemonChiffon3- , lemonChiffon4- , lightBlue1- , lightBlue2- , lightBlue3- , lightBlue4- , lightCyan1- , lightCyan2- , lightCyan3- , lightCyan4- , lightGoldenrod1- , lightGoldenrod2- , lightGoldenrod3- , lightGoldenrod4- , lightPink1- , lightPink2- , lightPink3- , lightPink4- , lightSalmon1- , lightSalmon2- , lightSalmon3- , lightSalmon4- , lightSkyBlue1- , lightSkyBlue2- , lightSkyBlue3- , lightSkyBlue4- , lightSteelBlue1- , lightSteelBlue2- , lightSteelBlue3- , lightSteelBlue4- , lightYellow1- , lightYellow2- , lightYellow3- , lightYellow4- , magenta1- , magenta2- , magenta3- , magenta4- , maroon1- , maroon2- , maroon3- , maroon4- , mediumOrchid1- , mediumOrchid2- , mediumOrchid3- , mediumOrchid4- , mediumPurple1- , mediumPurple2- , mediumPurple3- , mediumPurple4- , mistyRose1- , mistyRose2- , mistyRose3- , mistyRose4- , navajoWhite1- , navajoWhite2- , navajoWhite3- , navajoWhite4- , oliveDrab1- , oliveDrab2- , oliveDrab3- , oliveDrab4- , orange1- , orange2- , orange3- , orange4- , orangeRed1- , orangeRed2- , orangeRed3- , orangeRed4- , orchid1- , orchid2- , orchid3- , orchid4- , paleGreen1- , paleGreen2- , paleGreen3- , paleGreen4- , paleTurquoise1- , paleTurquoise2- , paleTurquoise3- , paleTurquoise4- , paleVioletRed1- , paleVioletRed2- , paleVioletRed3- , paleVioletRed4- , peachPuff1- , peachPuff2- , peachPuff3- , peachPuff4- , pink1- , pink2- , pink3- , pink4- , plum1- , plum2- , plum3- , plum4- , purple1- , purple2- , purple3- , purple4- , red1- , red2- , red3- , red4- , rosyBrown1- , rosyBrown2- , rosyBrown3- , rosyBrown4- , royalBlue1- , royalBlue2- , royalBlue3- , royalBlue4- , salmon1- , salmon2- , salmon3- , salmon4- , seaGreen1- , seaGreen2- , seaGreen3- , seaGreen4- , seashell1- , seashell2- , seashell3- , seashell4- , sienna1- , sienna2- , sienna3- , sienna4- , skyBlue1- , skyBlue2- , skyBlue3- , skyBlue4- , slateBlue1- , slateBlue2- , slateBlue3- , slateBlue4- , slateGray1- , slateGray2- , slateGray3- , slateGray4- , snow1- , snow2- , snow3- , snow4- , springGreen1- , springGreen2- , springGreen3- , springGreen4- , steelBlue1- , steelBlue2- , steelBlue3- , steelBlue4- , tan1- , tan2- , tan3- , tan4- , thistle1- , thistle2- , thistle3- , thistle4- , tomato1- , tomato2- , tomato3- , tomato4- , turquoise1- , turquoise2- , turquoise3- , turquoise4- , violetRed1- , violetRed2- , violetRed3- , violetRed4- , wheat1- , wheat2- , wheat3- , wheat4- , yellow1- , yellow2- , yellow3- , yellow4- , gray0- , green0- , grey0- , maroon0- , purple0-- ) where--import Wumpus.Core.Colour ( RGB3(..), DRGB )------------------------------------------------------------------------------------antiqueWhite1 :: DRGB-antiqueWhite2 :: DRGB-antiqueWhite3 :: DRGB-antiqueWhite4 :: DRGB-antiqueWhite1 = RGB3 1 0.936 0.86-antiqueWhite2 = RGB3 0.932 0.875 0.8-antiqueWhite3 = RGB3 0.804 0.752 0.69-antiqueWhite4 = RGB3 0.545 0.512 0.47--aquamarine1 :: DRGB-aquamarine2 :: DRGB-aquamarine3 :: DRGB-aquamarine4 :: DRGB-aquamarine1 = RGB3 0.498 1 0.83-aquamarine2 = RGB3 0.464 0.932 0.776-aquamarine3 = RGB3 0.4 0.804 0.668-aquamarine4 = RGB3 0.27 0.545 0.455--azure1 :: DRGB-azure2 :: DRGB-azure3 :: DRGB-azure4 :: DRGB-azure1 = RGB3 0.94 1 1-azure2 = RGB3 0.88 0.932 0.932-azure3 = RGB3 0.756 0.804 0.804-azure4 = RGB3 0.512 0.545 0.545--bisque1 :: DRGB-bisque2 :: DRGB-bisque3 :: DRGB-bisque4 :: DRGB-bisque1 = RGB3 1 0.894 0.77-bisque2 = RGB3 0.932 0.835 0.716-bisque3 = RGB3 0.804 0.716 0.62-bisque4 = RGB3 0.545 0.49 0.42--blue1 :: DRGB-blue2 :: DRGB-blue3 :: DRGB-blue4 :: DRGB-blue1 = RGB3 0 0 1-blue2 = RGB3 0 0 0.932-blue3 = RGB3 0 0 0.804-blue4 = RGB3 0 0 0.545--brown1 :: DRGB-brown2 :: DRGB-brown3 :: DRGB-brown4 :: DRGB-brown1 = RGB3 1 0.25 0.25-brown2 = RGB3 0.932 0.23 0.23-brown3 = RGB3 0.804 0.2 0.2-brown4 = RGB3 0.545 0.136 0.136--burlywood1 :: DRGB-burlywood2 :: DRGB-burlywood3 :: DRGB-burlywood4 :: DRGB-burlywood1 = RGB3 1 0.828 0.608-burlywood2 = RGB3 0.932 0.772 0.57-burlywood3 = RGB3 0.804 0.668 0.49-burlywood4 = RGB3 0.545 0.45 0.332--cadetBlue1 :: DRGB-cadetBlue2 :: DRGB-cadetBlue3 :: DRGB-cadetBlue4 :: DRGB-cadetBlue1 = RGB3 0.596 0.96 1-cadetBlue2 = RGB3 0.556 0.898 0.932-cadetBlue3 = RGB3 0.48 0.772 0.804-cadetBlue4 = RGB3 0.325 0.525 0.545--chartreuse1 :: DRGB-chartreuse2 :: DRGB-chartreuse3 :: DRGB-chartreuse4 :: DRGB-chartreuse1 = RGB3 0.498 1 0-chartreuse2 = RGB3 0.464 0.932 0-chartreuse3 = RGB3 0.4 0.804 0-chartreuse4 = RGB3 0.27 0.545 0--chocolate1 :: DRGB-chocolate2 :: DRGB-chocolate3 :: DRGB-chocolate4 :: DRGB-chocolate1 = RGB3 1 0.498 0.14-chocolate2 = RGB3 0.932 0.464 0.13-chocolate3 = RGB3 0.804 0.4 0.112-chocolate4 = RGB3 0.545 0.27 0.075--coral1 :: DRGB-coral2 :: DRGB-coral3 :: DRGB-coral4 :: DRGB-coral1 = RGB3 1 0.448 0.336-coral2 = RGB3 0.932 0.415 0.312-coral3 = RGB3 0.804 0.356 0.27-coral4 = RGB3 0.545 0.244 0.185--cornsilk1 :: DRGB-cornsilk2 :: DRGB-cornsilk3 :: DRGB-cornsilk4 :: DRGB-cornsilk1 = RGB3 1 0.972 0.864-cornsilk2 = RGB3 0.932 0.91 0.804-cornsilk3 = RGB3 0.804 0.785 0.694-cornsilk4 = RGB3 0.545 0.532 0.47--cyan1 :: DRGB-cyan2 :: DRGB-cyan3 :: DRGB-cyan4 :: DRGB-cyan1 = RGB3 0 1 1-cyan2 = RGB3 0 0.932 0.932-cyan3 = RGB3 0 0.804 0.804-cyan4 = RGB3 0 0.545 0.545--darkGoldenrod1 :: DRGB-darkGoldenrod2 :: DRGB-darkGoldenrod3 :: DRGB-darkGoldenrod4 :: DRGB-darkGoldenrod1 = RGB3 1 0.725 0.06-darkGoldenrod2 = RGB3 0.932 0.68 0.055-darkGoldenrod3 = RGB3 0.804 0.585 0.048-darkGoldenrod4 = RGB3 0.545 0.396 0.03--darkOliveGreen1 :: DRGB-darkOliveGreen2 :: DRGB-darkOliveGreen3 :: DRGB-darkOliveGreen4 :: DRGB-darkOliveGreen1 = RGB3 0.792 1 0.44-darkOliveGreen2 = RGB3 0.736 0.932 0.408-darkOliveGreen3 = RGB3 0.635 0.804 0.352-darkOliveGreen4 = RGB3 0.43 0.545 0.24--darkOrange1 :: DRGB-darkOrange2 :: DRGB-darkOrange3 :: DRGB-darkOrange4 :: DRGB-darkOrange1 = RGB3 1 0.498 0-darkOrange2 = RGB3 0.932 0.464 0-darkOrange3 = RGB3 0.804 0.4 0-darkOrange4 = RGB3 0.545 0.27 0--darkOrchid1 :: DRGB-darkOrchid2 :: DRGB-darkOrchid3 :: DRGB-darkOrchid4 :: DRGB-darkOrchid1 = RGB3 0.75 0.244 1-darkOrchid2 = RGB3 0.698 0.228 0.932-darkOrchid3 = RGB3 0.604 0.196 0.804-darkOrchid4 = RGB3 0.408 0.132 0.545--darkSeaGreen1 :: DRGB-darkSeaGreen2 :: DRGB-darkSeaGreen3 :: DRGB-darkSeaGreen4 :: DRGB-darkSeaGreen1 = RGB3 0.756 1 0.756-darkSeaGreen2 = RGB3 0.705 0.932 0.705-darkSeaGreen3 = RGB3 0.608 0.804 0.608-darkSeaGreen4 = RGB3 0.41 0.545 0.41--darkSlateGray1 :: DRGB-darkSlateGray2 :: DRGB-darkSlateGray3 :: DRGB-darkSlateGray4 :: DRGB-darkSlateGray1 = RGB3 0.592 1 1-darkSlateGray2 = RGB3 0.552 0.932 0.932-darkSlateGray3 = RGB3 0.475 0.804 0.804-darkSlateGray4 = RGB3 0.32 0.545 0.545--deepPink1 :: DRGB-deepPink2 :: DRGB-deepPink3 :: DRGB-deepPink4 :: DRGB-deepPink1 = RGB3 1 0.08 0.576-deepPink2 = RGB3 0.932 0.07 0.536-deepPink3 = RGB3 0.804 0.064 0.464-deepPink4 = RGB3 0.545 0.04 0.312--deepSkyBlue1 :: DRGB-deepSkyBlue2 :: DRGB-deepSkyBlue3 :: DRGB-deepSkyBlue4 :: DRGB-deepSkyBlue1 = RGB3 0 0.75 1-deepSkyBlue2 = RGB3 0 0.698 0.932-deepSkyBlue3 = RGB3 0 0.604 0.804-deepSkyBlue4 = RGB3 0 0.408 0.545--dodgerBlue1 :: DRGB-dodgerBlue2 :: DRGB-dodgerBlue3 :: DRGB-dodgerBlue4 :: DRGB-dodgerBlue1 = RGB3 0.116 0.565 1-dodgerBlue2 = RGB3 0.11 0.525 0.932-dodgerBlue3 = RGB3 0.094 0.455 0.804-dodgerBlue4 = RGB3 0.064 0.305 0.545--firebrick1 :: DRGB-firebrick2 :: DRGB-firebrick3 :: DRGB-firebrick4 :: DRGB-firebrick1 = RGB3 1 0.19 0.19-firebrick2 = RGB3 0.932 0.172 0.172-firebrick3 = RGB3 0.804 0.15 0.15-firebrick4 = RGB3 0.545 0.1 0.1--gold1 :: DRGB-gold2 :: DRGB-gold3 :: DRGB-gold4 :: DRGB-gold1 = RGB3 1 0.844 0-gold2 = RGB3 0.932 0.79 0-gold3 = RGB3 0.804 0.68 0-gold4 = RGB3 0.545 0.46 0--goldenrod1 :: DRGB-goldenrod2 :: DRGB-goldenrod3 :: DRGB-goldenrod4 :: DRGB-goldenrod1 = RGB3 1 0.756 0.145-goldenrod2 = RGB3 0.932 0.705 0.132-goldenrod3 = RGB3 0.804 0.608 0.112-goldenrod4 = RGB3 0.545 0.41 0.08--green1 :: DRGB-green2 :: DRGB-green3 :: DRGB-green4 :: DRGB-green1 = RGB3 0 1 0-green2 = RGB3 0 0.932 0-green3 = RGB3 0 0.804 0-green4 = RGB3 0 0.545 0--honeydew1 :: DRGB-honeydew2 :: DRGB-honeydew3 :: DRGB-honeydew4 :: DRGB-honeydew1 = RGB3 0.94 1 0.94-honeydew2 = RGB3 0.88 0.932 0.88-honeydew3 = RGB3 0.756 0.804 0.756-honeydew4 = RGB3 0.512 0.545 0.512--hotPink1 :: DRGB-hotPink2 :: DRGB-hotPink3 :: DRGB-hotPink4 :: DRGB-hotPink1 = RGB3 1 0.43 0.705-hotPink2 = RGB3 0.932 0.415 0.655-hotPink3 = RGB3 0.804 0.376 0.565-hotPink4 = RGB3 0.545 0.228 0.385--indianRed1 :: DRGB-indianRed2 :: DRGB-indianRed3 :: DRGB-indianRed4 :: DRGB-indianRed1 = RGB3 1 0.415 0.415-indianRed2 = RGB3 0.932 0.39 0.39-indianRed3 = RGB3 0.804 0.332 0.332-indianRed4 = RGB3 0.545 0.228 0.228--ivory1 :: DRGB-ivory2 :: DRGB-ivory3 :: DRGB-ivory4 :: DRGB-ivory1 = RGB3 1 1 0.94-ivory2 = RGB3 0.932 0.932 0.88-ivory3 = RGB3 0.804 0.804 0.756-ivory4 = RGB3 0.545 0.545 0.512--khaki1 :: DRGB-khaki2 :: DRGB-khaki3 :: DRGB-khaki4 :: DRGB-khaki1 = RGB3 1 0.965 0.56-khaki2 = RGB3 0.932 0.9 0.52-khaki3 = RGB3 0.804 0.776 0.45-khaki4 = RGB3 0.545 0.525 0.305--lavenderBlush1 :: DRGB-lavenderBlush2 :: DRGB-lavenderBlush3 :: DRGB-lavenderBlush4 :: DRGB-lavenderBlush1 = RGB3 1 0.94 0.96-lavenderBlush2 = RGB3 0.932 0.88 0.898-lavenderBlush3 = RGB3 0.804 0.756 0.772-lavenderBlush4 = RGB3 0.545 0.512 0.525--lemonChiffon1 :: DRGB-lemonChiffon2 :: DRGB-lemonChiffon3 :: DRGB-lemonChiffon4 :: DRGB-lemonChiffon1 = RGB3 1 0.98 0.804-lemonChiffon2 = RGB3 0.932 0.912 0.75-lemonChiffon3 = RGB3 0.804 0.79 0.648-lemonChiffon4 = RGB3 0.545 0.536 0.44--lightBlue1 :: DRGB-lightBlue2 :: DRGB-lightBlue3 :: DRGB-lightBlue4 :: DRGB-lightBlue1 = RGB3 0.75 0.936 1-lightBlue2 = RGB3 0.698 0.875 0.932-lightBlue3 = RGB3 0.604 0.752 0.804-lightBlue4 = RGB3 0.408 0.512 0.545--lightCyan1 :: DRGB-lightCyan2 :: DRGB-lightCyan3 :: DRGB-lightCyan4 :: DRGB-lightCyan1 = RGB3 0.88 1 1-lightCyan2 = RGB3 0.82 0.932 0.932-lightCyan3 = RGB3 0.705 0.804 0.804-lightCyan4 = RGB3 0.48 0.545 0.545--lightGoldenrod1 :: DRGB-lightGoldenrod2 :: DRGB-lightGoldenrod3 :: DRGB-lightGoldenrod4 :: DRGB-lightGoldenrod1 = RGB3 1 0.925 0.545-lightGoldenrod2 = RGB3 0.932 0.864 0.51-lightGoldenrod3 = RGB3 0.804 0.745 0.44-lightGoldenrod4 = RGB3 0.545 0.505 0.298--lightPink1 :: DRGB-lightPink2 :: DRGB-lightPink3 :: DRGB-lightPink4 :: DRGB-lightPink1 = RGB3 1 0.684 0.725-lightPink2 = RGB3 0.932 0.635 0.68-lightPink3 = RGB3 0.804 0.55 0.585-lightPink4 = RGB3 0.545 0.372 0.396--lightSalmon1 :: DRGB-lightSalmon2 :: DRGB-lightSalmon3 :: DRGB-lightSalmon4 :: DRGB-lightSalmon1 = RGB3 1 0.628 0.48-lightSalmon2 = RGB3 0.932 0.585 0.448-lightSalmon3 = RGB3 0.804 0.505 0.385-lightSalmon4 = RGB3 0.545 0.34 0.26--lightSkyBlue1 :: DRGB-lightSkyBlue2 :: DRGB-lightSkyBlue3 :: DRGB-lightSkyBlue4 :: DRGB-lightSkyBlue1 = RGB3 0.69 0.888 1-lightSkyBlue2 = RGB3 0.644 0.828 0.932-lightSkyBlue3 = RGB3 0.552 0.712 0.804-lightSkyBlue4 = RGB3 0.376 0.484 0.545--lightSteelBlue1 :: DRGB-lightSteelBlue2 :: DRGB-lightSteelBlue3 :: DRGB-lightSteelBlue4 :: DRGB-lightSteelBlue1 = RGB3 0.792 0.884 1-lightSteelBlue2 = RGB3 0.736 0.824 0.932-lightSteelBlue3 = RGB3 0.635 0.71 0.804-lightSteelBlue4 = RGB3 0.43 0.484 0.545--lightYellow1 :: DRGB-lightYellow2 :: DRGB-lightYellow3 :: DRGB-lightYellow4 :: DRGB-lightYellow1 = RGB3 1 1 0.88-lightYellow2 = RGB3 0.932 0.932 0.82-lightYellow3 = RGB3 0.804 0.804 0.705-lightYellow4 = RGB3 0.545 0.545 0.48--magenta1 :: DRGB-magenta2 :: DRGB-magenta3 :: DRGB-magenta4 :: DRGB-magenta1 = RGB3 1 0 1-magenta2 = RGB3 0.932 0 0.932-magenta3 = RGB3 0.804 0 0.804-magenta4 = RGB3 0.545 0 0.545--maroon1 :: DRGB-maroon2 :: DRGB-maroon3 :: DRGB-maroon4 :: DRGB-maroon1 = RGB3 1 0.204 0.7-maroon2 = RGB3 0.932 0.19 0.655-maroon3 = RGB3 0.804 0.16 0.565-maroon4 = RGB3 0.545 0.11 0.385--mediumOrchid1 :: DRGB-mediumOrchid2 :: DRGB-mediumOrchid3 :: DRGB-mediumOrchid4 :: DRGB-mediumOrchid1 = RGB3 0.88 0.4 1-mediumOrchid2 = RGB3 0.82 0.372 0.932-mediumOrchid3 = RGB3 0.705 0.32 0.804-mediumOrchid4 = RGB3 0.48 0.215 0.545--mediumPurple1 :: DRGB-mediumPurple2 :: DRGB-mediumPurple3 :: DRGB-mediumPurple4 :: DRGB-mediumPurple1 = RGB3 0.67 0.51 1-mediumPurple2 = RGB3 0.624 0.475 0.932-mediumPurple3 = RGB3 0.536 0.408 0.804-mediumPurple4 = RGB3 0.365 0.28 0.545--mistyRose1 :: DRGB-mistyRose2 :: DRGB-mistyRose3 :: DRGB-mistyRose4 :: DRGB-mistyRose1 = RGB3 1 0.894 0.884-mistyRose2 = RGB3 0.932 0.835 0.824-mistyRose3 = RGB3 0.804 0.716 0.71-mistyRose4 = RGB3 0.545 0.49 0.484--navajoWhite1 :: DRGB-navajoWhite2 :: DRGB-navajoWhite3 :: DRGB-navajoWhite4 :: DRGB-navajoWhite1 = RGB3 1 0.87 0.68-navajoWhite2 = RGB3 0.932 0.81 0.63-navajoWhite3 = RGB3 0.804 0.7 0.545-navajoWhite4 = RGB3 0.545 0.475 0.37--oliveDrab1 :: DRGB-oliveDrab2 :: DRGB-oliveDrab3 :: DRGB-oliveDrab4 :: DRGB-oliveDrab1 = RGB3 0.752 1 0.244-oliveDrab2 = RGB3 0.7 0.932 0.228-oliveDrab3 = RGB3 0.604 0.804 0.196-oliveDrab4 = RGB3 0.41 0.545 0.132--orange1 :: DRGB-orange2 :: DRGB-orange3 :: DRGB-orange4 :: DRGB-orange1 = RGB3 1 0.648 0-orange2 = RGB3 0.932 0.604 0-orange3 = RGB3 0.804 0.52 0-orange4 = RGB3 0.545 0.352 0--orangeRed1 :: DRGB-orangeRed2 :: DRGB-orangeRed3 :: DRGB-orangeRed4 :: DRGB-orangeRed1 = RGB3 1 0.27 0-orangeRed2 = RGB3 0.932 0.25 0-orangeRed3 = RGB3 0.804 0.215 0-orangeRed4 = RGB3 0.545 0.145 0--orchid1 :: DRGB-orchid2 :: DRGB-orchid3 :: DRGB-orchid4 :: DRGB-orchid1 = RGB3 1 0.512 0.98-orchid2 = RGB3 0.932 0.48 0.912-orchid3 = RGB3 0.804 0.41 0.79-orchid4 = RGB3 0.545 0.28 0.536--paleGreen1 :: DRGB-paleGreen2 :: DRGB-paleGreen3 :: DRGB-paleGreen4 :: DRGB-paleGreen1 = RGB3 0.604 1 0.604-paleGreen2 = RGB3 0.565 0.932 0.565-paleGreen3 = RGB3 0.488 0.804 0.488-paleGreen4 = RGB3 0.33 0.545 0.33--paleTurquoise1 :: DRGB-paleTurquoise2 :: DRGB-paleTurquoise3 :: DRGB-paleTurquoise4 :: DRGB-paleTurquoise1 = RGB3 0.732 1 1-paleTurquoise2 = RGB3 0.684 0.932 0.932-paleTurquoise3 = RGB3 0.59 0.804 0.804-paleTurquoise4 = RGB3 0.4 0.545 0.545--paleVioletRed1 :: DRGB-paleVioletRed2 :: DRGB-paleVioletRed3 :: DRGB-paleVioletRed4 :: DRGB-paleVioletRed1 = RGB3 1 0.51 0.67-paleVioletRed2 = RGB3 0.932 0.475 0.624-paleVioletRed3 = RGB3 0.804 0.408 0.536-paleVioletRed4 = RGB3 0.545 0.28 0.365--peachPuff1 :: DRGB-peachPuff2 :: DRGB-peachPuff3 :: DRGB-peachPuff4 :: DRGB-peachPuff1 = RGB3 1 0.855 0.725-peachPuff2 = RGB3 0.932 0.796 0.68-peachPuff3 = RGB3 0.804 0.688 0.585-peachPuff4 = RGB3 0.545 0.468 0.396--pink1 :: DRGB-pink2 :: DRGB-pink3 :: DRGB-pink4 :: DRGB-pink1 = RGB3 1 0.71 0.772-pink2 = RGB3 0.932 0.664 0.72-pink3 = RGB3 0.804 0.57 0.62-pink4 = RGB3 0.545 0.39 0.424--plum1 :: DRGB-plum2 :: DRGB-plum3 :: DRGB-plum4 :: DRGB-plum1 = RGB3 1 0.732 1-plum2 = RGB3 0.932 0.684 0.932-plum3 = RGB3 0.804 0.59 0.804-plum4 = RGB3 0.545 0.4 0.545--purple1 :: DRGB-purple2 :: DRGB-purple3 :: DRGB-purple4 :: DRGB-purple1 = RGB3 0.608 0.19 1-purple2 = RGB3 0.57 0.172 0.932-purple3 = RGB3 0.49 0.15 0.804-purple4 = RGB3 0.332 0.1 0.545--red1 :: DRGB-red2 :: DRGB-red3 :: DRGB-red4 :: DRGB-red1 = RGB3 1 0 0-red2 = RGB3 0.932 0 0-red3 = RGB3 0.804 0 0-red4 = RGB3 0.545 0 0--rosyBrown1 :: DRGB-rosyBrown2 :: DRGB-rosyBrown3 :: DRGB-rosyBrown4 :: DRGB-rosyBrown1 = RGB3 1 0.756 0.756-rosyBrown2 = RGB3 0.932 0.705 0.705-rosyBrown3 = RGB3 0.804 0.608 0.608-rosyBrown4 = RGB3 0.545 0.41 0.41--royalBlue1 :: DRGB-royalBlue2 :: DRGB-royalBlue3 :: DRGB-royalBlue4 :: DRGB-royalBlue1 = RGB3 0.284 0.464 1-royalBlue2 = RGB3 0.264 0.43 0.932-royalBlue3 = RGB3 0.228 0.372 0.804-royalBlue4 = RGB3 0.152 0.25 0.545--salmon1 :: DRGB-salmon2 :: DRGB-salmon3 :: DRGB-salmon4 :: DRGB-salmon1 = RGB3 1 0.55 0.41-salmon2 = RGB3 0.932 0.51 0.385-salmon3 = RGB3 0.804 0.44 0.33-salmon4 = RGB3 0.545 0.298 0.224--seaGreen1 :: DRGB-seaGreen2 :: DRGB-seaGreen3 :: DRGB-seaGreen4 :: DRGB-seaGreen1 = RGB3 0.33 1 0.624-seaGreen2 = RGB3 0.305 0.932 0.58-seaGreen3 = RGB3 0.264 0.804 0.5-seaGreen4 = RGB3 0.18 0.545 0.34--seashell1 :: DRGB-seashell2 :: DRGB-seashell3 :: DRGB-seashell4 :: DRGB-seashell1 = RGB3 1 0.96 0.932-seashell2 = RGB3 0.932 0.898 0.87-seashell3 = RGB3 0.804 0.772 0.75-seashell4 = RGB3 0.545 0.525 0.51--sienna1 :: DRGB-sienna2 :: DRGB-sienna3 :: DRGB-sienna4 :: DRGB-sienna1 = RGB3 1 0.51 0.28-sienna2 = RGB3 0.932 0.475 0.26-sienna3 = RGB3 0.804 0.408 0.224-sienna4 = RGB3 0.545 0.28 0.15--skyBlue1 :: DRGB-skyBlue2 :: DRGB-skyBlue3 :: DRGB-skyBlue4 :: DRGB-skyBlue1 = RGB3 0.53 0.808 1-skyBlue2 = RGB3 0.494 0.752 0.932-skyBlue3 = RGB3 0.424 0.65 0.804-skyBlue4 = RGB3 0.29 0.44 0.545--slateBlue1 :: DRGB-slateBlue2 :: DRGB-slateBlue3 :: DRGB-slateBlue4 :: DRGB-slateBlue1 = RGB3 0.512 0.435 1-slateBlue2 = RGB3 0.48 0.404 0.932-slateBlue3 = RGB3 0.41 0.35 0.804-slateBlue4 = RGB3 0.28 0.235 0.545--slateGray1 :: DRGB-slateGray2 :: DRGB-slateGray3 :: DRGB-slateGray4 :: DRGB-slateGray1 = RGB3 0.776 0.888 1-slateGray2 = RGB3 0.725 0.828 0.932-slateGray3 = RGB3 0.624 0.712 0.804-slateGray4 = RGB3 0.424 0.484 0.545--snow1 :: DRGB-snow2 :: DRGB-snow3 :: DRGB-snow4 :: DRGB-snow1 = RGB3 1 0.98 0.98-snow2 = RGB3 0.932 0.912 0.912-snow3 = RGB3 0.804 0.79 0.79-snow4 = RGB3 0.545 0.536 0.536--springGreen1 :: DRGB-springGreen2 :: DRGB-springGreen3 :: DRGB-springGreen4 :: DRGB-springGreen1 = RGB3 0 1 0.498-springGreen2 = RGB3 0 0.932 0.464-springGreen3 = RGB3 0 0.804 0.4-springGreen4 = RGB3 0 0.545 0.27--steelBlue1 :: DRGB-steelBlue2 :: DRGB-steelBlue3 :: DRGB-steelBlue4 :: DRGB-steelBlue1 = RGB3 0.39 0.72 1-steelBlue2 = RGB3 0.36 0.675 0.932-steelBlue3 = RGB3 0.31 0.58 0.804-steelBlue4 = RGB3 0.21 0.392 0.545--tan1 :: DRGB-tan2 :: DRGB-tan3 :: DRGB-tan4 :: DRGB-tan1 = RGB3 1 0.648 0.31-tan2 = RGB3 0.932 0.604 0.288-tan3 = RGB3 0.804 0.52 0.248-tan4 = RGB3 0.545 0.352 0.17--thistle1 :: DRGB-thistle2 :: DRGB-thistle3 :: DRGB-thistle4 :: DRGB-thistle1 = RGB3 1 0.884 1-thistle2 = RGB3 0.932 0.824 0.932-thistle3 = RGB3 0.804 0.71 0.804-thistle4 = RGB3 0.545 0.484 0.545--tomato1 :: DRGB-tomato2 :: DRGB-tomato3 :: DRGB-tomato4 :: DRGB-tomato1 = RGB3 1 0.39 0.28-tomato2 = RGB3 0.932 0.36 0.26-tomato3 = RGB3 0.804 0.31 0.224-tomato4 = RGB3 0.545 0.21 0.15--turquoise1 :: DRGB-turquoise2 :: DRGB-turquoise3 :: DRGB-turquoise4 :: DRGB-turquoise1 = RGB3 0 0.96 1-turquoise2 = RGB3 0 0.898 0.932-turquoise3 = RGB3 0 0.772 0.804-turquoise4 = RGB3 0 0.525 0.545--violetRed1 :: DRGB-violetRed2 :: DRGB-violetRed3 :: DRGB-violetRed4 :: DRGB-violetRed1 = RGB3 1 0.244 0.59-violetRed2 = RGB3 0.932 0.228 0.55-violetRed3 = RGB3 0.804 0.196 0.47-violetRed4 = RGB3 0.545 0.132 0.32--wheat1 :: DRGB-wheat2 :: DRGB-wheat3 :: DRGB-wheat4 :: DRGB-wheat1 = RGB3 1 0.905 0.73-wheat2 = RGB3 0.932 0.848 0.684-wheat3 = RGB3 0.804 0.73 0.59-wheat4 = RGB3 0.545 0.494 0.4--yellow1 :: DRGB-yellow2 :: DRGB-yellow3 :: DRGB-yellow4 :: DRGB-yellow1 = RGB3 1 1 0-yellow2 = RGB3 0.932 0.932 0-yellow3 = RGB3 0.804 0.804 0-yellow4 = RGB3 0.545 0.545 0--gray0 :: DRGB-green0 :: DRGB-grey0 :: DRGB-maroon0 :: DRGB-purple0 :: DRGB-gray0 = RGB3 0.745 0.745 0.745-green0 = RGB3 0 1 0-grey0 = RGB3 0.745 0.745 0.745-maroon0 = RGB3 0.69 0.19 0.376-purple0 = RGB3 0.628 0.125 0.94----
wumpus-core.cabal view
@@ -1,5 +1,5 @@ name: wumpus-core-version: 0.19.0+version: 0.20.0 license: BSD3 license-file: LICENSE copyright: Stephen Tetley <stephen.tetley@gmail.com>@@ -11,8 +11,8 @@ . Wumpus - (W)riter (M)onad (P)ost (S)cript. .- Wumpus is a library for generating 2D vector pictures, its - salient feature is portability due to no FFI dependencies. + Wumpus is a kernel library for generating 2D vector pictures, + its salient feature is portability due to no FFI dependencies. It can generate PostScript (EPS) files and SVG files. The generated PostScript code is plain [1] and reasonably efficient as the use of stack operations, i.e @gsave@ and @@ -25,50 +25,13 @@ is no notion of a current point, Wumpus builds pictures in a coordinate-free style. .- Wumpus-core includes some extra helper modules that are not - really part of the \"core\", but are otherwise currently - homeless. They provide lists of named colours and /safe/ - fonts, plus some prototype code (Extra.PictureLanguage) for - arranging pictures.- .- WARNING...- .- The modules @Core.BoundingBox@ and @Extra.PictureLanguage@ are- likely to be reworked significantly in the future. - .- @Core.BoundingBox@ has too many functions that do not offer - distinct functionality. Some functions were removed in - revision 0.17.0 and some more are likely to follow. - .- @Extra.PictureLanguage@ needs some more thought. The current - set of classes is rather cumbersome, and some of the operations - would benefit new names.- .- NOTE...- .- Revision 0.17.0 added affine transformations for primitives - (paths, text labels, ellipses), one consequence of this is - the bounding box may be tighter for a primitive under affine - transformation then lifted to a picture, than a primitive - lifted to picture then transformed, i.e.:- . - @boundary (liftToPicture (transform PRIM)) /= boundary (transform (liftToPicture PRIM))@- .- Where liftToPicture is usually @frame@ from - @Wumpus.Core.Picture@.- .- This is because the bounding box of a transformed picture is - calculated by applying the transformation to the corner points - of its (previous) bounding box rather than finding the bounding - box union of all the composite primitives.- . GENERAL DRAWBACKS... . For actually drawing pictures, diagrams, etc. Wumpus is very - low level. I\'m working on a complementary package - @wumpus-extra@ with higher-level stuff (polygons, arrows etc.)- but it is too unstable for Hackage. Preview releases can be- found at <http://code.google.com/p/copperbox/> though.+ low level. There is a supplemantary package @wumpus-basic@ + available that helps create certain types of diagram, but even + this lacks the higher-level stuff (polygons, arrows etc.) that + would make creating general drawings easy. . Some of the design decisions made for wumpus-core are not sophisticated (e.g. how attributes like colour are handled, @@ -80,7 +43,17 @@ appears okay for Latin 1 but may be inadequate for other character sets, so I may have to revise it significantly. .+ WARNING... .+ The module @Core.BoundingBox@ is likely to be reworked + significantly in the future. It has too many functions that do + not offer distinct functionality. Some functions were removed in + revision 0.17.0 and some more are likely to follow. + .+ The module @Extra.PictureLanguage@ is deprecated. At some point + it will be superceded by @wumpus-basic@ but this will not be soon.+ .+ . \[1\] Because the output is simple, straight-line PostScript code, it is possible to use GraphicsMagick or a similar tool to convert Wumpus'\s EPS files to many other formats @@ -88,59 +61,24 @@ . Changelog: .- 0.18,0 to 0.19.0:- .- * Added @Transform@ type class to apply a matrix transformation- directly.- .- * Changed the ordering of picture drawing in PostScript and SVG- output so the list gets drawn from tail to head with right - folds. This makes the list order of pictures match their - zorder.- .- * Renamed the function @withinBB@ (Core.BoundingBox) to - @within@.- .- * On many type signatures with e.g. Points, I\'ve changed the - parameter name on the type constructor from @a@ to @u@.- This is to indicate that @u@ is some unit - almost always a- Double. e.g @Point2 a@ becomes @Point2 u@ and all the class- obligations change lexically as well @Floating a =>@ to - @Floating u =>@. Superficially this means a lot of type - signatures have diffs but haven\'t really changed. - .- * Added function @bezierCircle@ to generate the Bezier curve - points for arcs describing a circle.- .- * Added new demo - MultiPic. The PostScript it generates- is efficient - no extraneous use of @concat@. - .- * Added wumpus_default_font constant.- .- 0.17.0 to 0.18.0:- .- * Added instances of the affine operation classes (Scale, - Rotate ...) for Primitives (path, text label, ellipse).+ 0.19.0 to 0.20.0: .- * Added some picture composition functions to Core.Picture.- These are useful for testing where the type class - complications of Extra.PictureLanguage are an overhead. + * Removed the modules - Wumpus.Extra.SafeFonts,+ Wumpus.Extra.SVGColours, Wumpus.Extra.X11Colours - they are + now in the package @wumpus-basic@. .- * Added iRGB to Core.Colour - create RGB colours with - integer components [0..255] - and iHSB, iGrey.+ * Removed the example FontPic.hs to @wumpus-basic@. .- * Added some test modules for the affine transformations.- These illustrate a quirk in Wumpus where, under affine - transformation, Pictures may generate a larger bounding box - than composite primitives.+ * Renamed two functions in Core.BoundingBox - @trace@ changed + to @traceBoundary@; @retrace@ changed to @retraceBoundary@.+ . + * Fixed bug with @picOver@, previously the zorder was wrong + and the function was actually working as /picUnder/. .- * Minor change - ztextlabel changed to use 24pt type rather - than 12pt. + * Added @capHeight@ to FontSize - get the size of an upper + case letter without ascenders of descenders. .- * Corrected the cabal file to include the correct files for - the manual. The Haskell source file @WorldFrame.hs@ was - missing with the generated file @WorldFrame.eps@ incorrectly - included instead.+ * Guide updated regarding the new package @wumpus-basic@. . . build-type: Simple@@ -155,7 +93,6 @@ demo/AffineTest03.hs, demo/AffineTest04.hs, demo/AffineTestBase.hs,- demo/FontPic.hs, demo/LabelPic.hs, demo/MultiPic.hs demo/Picture.hs,@@ -188,10 +125,7 @@ Wumpus.Core.TextLatin1, Wumpus.Core.VersionNumber, Wumpus.Core.WumpusTypes,- Wumpus.Extra.PictureLanguage,- Wumpus.Extra.SafeFonts,- Wumpus.Extra.SVGColours,- Wumpus.Extra.X11Colours+ Wumpus.Extra.PictureLanguage other-modules: Wumpus.Core.PictureInternal,