Copperbox revision 2033.
I've added round_corner_factor to the Drawing Context in Wumpus-Basic and added round corner drawing for rectangle shapes. Rounding for the diamond shape and paths will follow.
Having rounding in the Drawing Context seems better than the previous implementation, where shapes were obliged to have two build-functions: one for the rounded version and one for the angular one.
Wednesday, January 12, 2011
wumpus-basic
Copperbox revision 2032.
I've added a JoinList to Wumpus-Basic that I will probably use for Paths. Whether it will end up being more efficient than Data.Seq is debatable - Data.Seq is more complicated but it is optimized, so I ought to optimize the JoinList too.
I've added a JoinList to Wumpus-Basic that I will probably use for Paths. Whether it will end up being more efficient than Data.Seq is debatable - Data.Seq is more complicated but it is optimized, so I ought to optimize the JoinList too.
wumpus-drawing
Copperbox revision 2031.
I've reworked Shapes. Shapes are now a LocCF type so they are positioned with `at` like other drawing objects. Currently rounded corners support has been dropped - this needs adding to Paths as a transformation and Paths themselves need a rework.
I've reworked Shapes. Shapes are now a LocCF type so they are positioned with `at` like other drawing objects. Currently rounded corners support has been dropped - this needs adding to Paths as a transformation and Paths themselves need a rework.
Tuesday, January 11, 2011
wumpus
Copperbox revisions 2029 and 2030.
I've moved the Geometry modules from Wumpus-Basic to Wumpus-Drawing. I've also changed the type of the "path" generating functions to LocCoordPath which is a functional type from Point to [Point]. This new type should be more generally useful than the previous one that generated PrimPaths.
I've moved the Geometry modules from Wumpus-Basic to Wumpus-Drawing. I've also changed the type of the "path" generating functions to LocCoordPath which is a functional type from Point to [Point]. This new type should be more generally useful than the previous one that generated PrimPaths.
Monday, January 10, 2011
wumpus-drawing
Copperbox revision 2027.
I've reworked point generating chains. The new code is much simpler - no special encoding of a unfold, but it can support the same functionality.
The only apparent problem is that it needs to support two different drawing styles, thus it needs two sets of unzipping "run" functions. These functions are not suitable for a type class, and the current names are not appealing.
Copperbox revision 2028.
Adding a new chains example that should have been committed last time.
I've reworked point generating chains. The new code is much simpler - no special encoding of a unfold, but it can support the same functionality.
The only apparent problem is that it needs to support two different drawing styles, thus it needs two sets of unzipping "run" functions. These functions are not suitable for a type class, and the current names are not appealing.
Copperbox revision 2028.
Adding a new chains example that should have been committed last time.
Sunday, January 9, 2011
wumpus
Copperbox revision 2026.
I've simplified ScalingContext in Wumpus-Basic. The monad and transformer have been removed as they were inducing to unwieldy type signatures. Instead code code must reference the ScalingContext directly (the monads were Readers so this is not too bad).
The code in Drawing, Tree and Microprint has been updated accordingly.
I've simplified ScalingContext in Wumpus-Basic. The monad and transformer have been removed as they were inducing to unwieldy type signatures. Instead code code must reference the ScalingContext directly (the monads were Readers so this is not too bad).
The code in Drawing, Tree and Microprint has been updated accordingly.
wumpus-tree
Copperbox revision 2025.
Some tidying up of Wumpus-Tree. Also, I've updated the Wumpus-Core guide to acknowledge the splitting of Wumpus-Basic into Wumpus-Basic and Wumpus-Drawing.
Some tidying up of Wumpus-Tree. Also, I've updated the Wumpus-Core guide to acknowledge the splitting of Wumpus-Basic into Wumpus-Basic and Wumpus-Drawing.
Subscribe to:
Posts (Atom)
Blog Archive
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.