Monday, February 28, 2011

wumpus-drawing

Copperbox revision 2172.

Updated Wumpus-Drawing to work with the unit changes in Wumpus-Core and Basic. Many functions needed their class constraint extending with a PtSize constraint.

Sunday, February 27, 2011

wumpus-basic

Copperbox revision 2171.

Updates to work with the PrimPath changes to Wumpus-Core. It looks like the unit scaling problem reported in the last message has gone due to those changes.

wumpus-core

Copperbox revision 2170.

I've changed the internal representation of primitive Paths so they store transformation information in a CTM like Text and Ellipse.

Work on unit changing has uncovered a very strange translation bug that I haven't been able to get to the bottom of - Paths are being displaced by far more than the unit change, Text and Ellipses are okay. As I can't work out out what's going on, the best thing to do is to unify the representation of primitives, hoping that either the bug will disappear as a consequence, or it becomes easier to identify.

Saturday, February 26, 2011

wumpus-rhythm

Copperbox revision 2169.

I've re-worked the graphic primitives to use measurements (parameters) in AfmUnits directly rather than scale them (which makes everything monadic). Scaling should be achievable with the new unit conversion support in Wumpus-Basic.

Friday, February 25, 2011

wumpus-basic

Copperbox revision 2168.

I've added support to convert the units for various drawing objects Image, PosImage, TraceDrawing etc.

The code is unfortunately more contrived than I had expected. Changing units in Wumpus-Core is just a functorial traversal, but this isn't the case in Wumpus-Basic. Also in Wumpus-Basic, the many of the objects are type synonyms with kind (* -> * -> *) so there is no opportunity to encapsulate conversion in a type class. Instead I've had to code the type specific cases with unique functions that look the same if you squint.

Wumpus-Rhythm has a compelling use for unit conversion, so it will be a test-case to gauge whether the new code is satisfactory if not pretty.

Wednesday, February 23, 2011

wumpus-core

Copperbox revision 2061.

Minor tweaks to the Affine Trans classes. I actually spent the day trying to change them wholesale to remove the DUnit "hack", however I couldn't come up with a formulation as Functors that worked well for Wumpus-Basic.

wumpus

Copperbox revision 2166.

I've updated Wumpus-Basic and Wumpus-Drawing to work with the latest PtSize and units changes to Wumpus-Core.

Blog Archive

About Me

My photo
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.