Difference between revisions of "User:Lenny222"
Jump to navigation
Jump to search
m (→Todo) |
m (→Todo) |
||
Line 19: | Line 19: | ||
==== Todo ==== |
==== Todo ==== |
||
+ | |||
⚫ | |||
* Box |
* Box |
||
** splitHorizontal :: Int -> Double -> Box -> [Box] -- ^ number of boxes, space |
** splitHorizontal :: Int -> Double -> Box -> [Box] -- ^ number of boxes, space |
||
+ | |||
+ | <haskell> |
||
+ | subBoxWidth = (width - (n - 1) * subBoxMargin) / n |
||
+ | subBoxes = map (\i -> left + i * (subBoxWidth + subBoxMargin)) [0..n-1] |
||
+ | </haskell> |
||
+ | |||
+ | * Box |
||
** splitVertical :: Int -> Double -> Box -> [Box] -- ^ number of boxes, space |
** splitVertical :: Int -> Double -> Box -> [Box] -- ^ number of boxes, space |
||
⚫ | |||
* Datatypes |
* Datatypes |
||
** Unit |
** Unit |
||
⚫ | |||
<haskell> |
<haskell> |
||
data Unit = |
data Unit = |
||
Line 41: | Line 50: | ||
deriving(Eq, Show) |
deriving(Eq, Show) |
||
</haskell> |
</haskell> |
||
+ | |||
⚫ | |||
+ | * Datatypes |
||
** <haskell>data Length = Length Unit Double deriving(Eq, Show)</haskell> |
** <haskell>data Length = Length Unit Double deriving(Eq, Show)</haskell> |
||
Revision as of 09:00, 12 January 2010
Things i think need improvement
Chlor
Todo
- delete Layout/*
- Box
- splitHorizontal :: Int -> Double -> Box -> [Box] -- ^ number of boxes, space
subBoxWidth = (width - (n - 1) * subBoxMargin) / n
subBoxes = map (\i -> left + i * (subBoxWidth + subBoxMargin)) [0..n-1]
- Box
- splitVertical :: Int -> Double -> Box -> [Box] -- ^ number of boxes, space
- Datatypes
- Unit
- defaultUnit
- Unit
data Unit =
UnitCM
| UnitEM
| UnitEX
| UnitIN
| UnitMM
| UnitPC
| UnitPT
| UnitPX
| UnitPercent
deriving(Eq, Show)
- Datatypes
data Length = Length Unit Double deriving(Eq, Show)
- Path
- Diagram
- Histogram http://had.co.nz/ggplot2/geom_histogram.html
- Pie (only for displaying fractions)
- Stairs http://had.co.nz/ggplot2/geom_step.html
- Shape
- SVG export
- SvgPath
<path d="M 100 100 L 300 100 L 200 300 z" fill="red" stroke="blue" stroke-width="3" />
- SvgRectangle
<rect x="400" y="100" width="400" height="200" fill="yellow" stroke="navy" stroke-width="10" />
- SvgPath
- ObjectLike: DList instead of List?
- SVG XML generation
- HStringTemplate?
- HXT?
- HaXml?
- Layout
- Instances
- Column
- Grid (cols, rows, margins)
- Margin/Frame
- content size (absolute, relative, remaining)
- margin sizes (absolute, relative, remaining)
- Instances
- repeatedly
- use HLint
- use ghc -W
- AffineTransformation
- Path
- approximate :: Double -> [(Double, Double)] -> [Segment] -- ^ error, points
Ideas
- layout
- Table
- SpaceHorizontal
- SpaceVertical
- 3d projection
- diagrams
- histograms, density plots
- export
- SVG
- Illustrator JavaScript
- Processing
- SWF
- TikZ/LaTeX
- import
- SVG
- path operations
- boolean operations
- offset path
- http://inkscape.svn.sourceforge.net/viewvc/inkscape/inkscape/trunk/src/live_effects/
- recursive programming
Simplified Haskell homepage
A simplified Haskell frontpage
Why?
- to add a structure
- to reduce redundancy
- to make scanning easier: