Copperbox revision 971.
Wumpus optimized!
Wumpus now generates efficient (straight line) PostScript. The only calls to gsave and grestore are now bookends of the file (which is necessary for EPS files). Changing the CTM or the graphics state no longer needs to be done in gsave ... grestore block - changes to CTM are undone by applying the matrix inverse of the transformation on exit of a 'block' this is much more efficient than putting the graphics state on the stack. Similarly, changes of stroke width, dash pattern, ... are undone after a path is drawn.
Colour and font changes are slightly different - here Wumpus uses the fact that all leaves in the tree have a colour attribute and all label leaves have a Font attribute. Wumpus can avoid an undo because the next leaf will do a set-property anyway.
With a bit of tidying up and checking that the examples in wumpus-extra still work, wumpus-core should be ready for Hackage.
Blog Archive
-
▼
2009
(651)
-
▼
November
(109)
- Wumpus
- Wumpus
- wumpus-core-0.13.1
- Wumpus
- wumpus-core-0.13.0 and wumpus-extra0.5.0
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- wumpus-core-0.12.0 and wumpus-extra-0.4.0
- Wumpus and data-aviary-0.2.0
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- wumpus-core-0.11.0 & wumpus-extra-0.3.0
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- wumpus-core-0.10.0
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- wumpus-core-0.9.0
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- wumpus-core-0.8.0
- Hy-lists and Wumpus
- hy-lists
- Hy-lists and Wumpus
- hy-lists
- joinlist-0.2.0
- Wumpus
- Wumpus
- wumpus-core-0.7.0
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- wumpus-core-0.6.0
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- data-aviary-0.1.0
- data-aviary
- data-aviary
- data-aviary
- data-aviary
- data-aviary
- wumpus-core-0.5.0, wumpus-extra-0.2.0
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Clean, Sections, Partial Application
- Wumpus
- Wumpus
- Wumpus
- wumpus-core-0.4.0, wumpus-extra-0.1.0
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
- Wumpus
-
▼
November
(109)
About Me
- Stephen Tetley
- Disambiguating biog as there are a few Stephen Tetley's in the world. I'm neither a cage fighter or yachtsman. I studied Fine Art in the nineties (foundation Bradford 1992, degree Cheltenham 1992 - 95) then Computing part-time at Leeds Met graduating in 2003. I'm the Stephen Tetley on Haskell Cafe and Stackoverflow.