Tuesday, October 5, 2010

wumpus-basic

Copperbox revision 1766.

I've worked through the demos and they should all run now.

Also, I've done some tidying up of Basic.Graphic removing the functions localLG and lgappend. They can be recreated with Applicative notation slightly more verbosely, so not having them as functions is something of a loss, however, I felt they were adding more "concepts" to the Graphic.Base API so that swung the balance in favour of removing them.

wumpus-basic

Copperbox revision 1765.

I've merged the modules Basic.Graphic.BaseClasses and Basic.Graphic.BaseTypes into one module Basic.Graphic.Base. This is so DrawingR can be a instance of DrawingCtxM without having to be an orphan (previously BaseClasses depended on BaseTypes).

Also, I've renamed the methods in DrawingCtxM and removed the non-overloaded functions pureDF, askDF etc. This has percolated a lot of changes through the code. Again not all the demos have been updated yet.

wumpus-basic

Copperbox revision 1764.

In DrawingContext, I've renamed the field labels primary_colour to stroke_colour and secondary_colour to fill_colour. Also I've renamed the setters accordingly, though not all examples have been tested yet so some might fail.

wumpus-basic

Copperbox revision 1763.

I've added a DirectionContext monad - this is a reader monad with line direction as the context. Its intended to make creating paths easier when the path needs displacing by a line angle. For instance, arrow tips are easy to think about if drawn on a left-to-right horizontal line, its more complicated to think about them on a line of some parametric angular direction. DirectionContext abstracts the direction and provides two morphisms perpendicular and parallel that are analogous to the vector constructors vvec and hvec.

wumpus-basic

Copperbox revision 1762.

Work on arrow tips - mostly recoding how to make triangles whilst regarding line angle. I had forgotten how the original code I wrote for this worked.

Monday, October 4, 2010

wumpus-core

Copperbox revision 1761.

Wumpus-Core bug fix...

wumpus-core-0.34.0 has a bug in the PostScript output code. In the file OutputPostScript, line 464 uses *hcat* - this should be *vcat*. If more than one stroke property changes invalid PostScript will be generated. As this is a single character bug, I will update the Hackage distribution only when I have some other changes/fixes.

wumpus-basic

Copperbox revision 1760.

Initial work on round cornered paths. The new function roundEvery can be used to draw round cornered polygons when supplied with a list of the vertex points.

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.