Difference between revisions of "User:Lenny222"
Jump to navigation
Jump to search
(focusing on real world technolgies for the moment) |
|||
(138 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [http://www.cardus.com/sticky.php?year=7 ] |
||
− | == Things i think need improvement == |
||
− | |||
− | * [[Diagrams]] |
||
− | * [[GHC/Error messages|GHC error messages]] |
||
− | * [[Cookbook|Haskell Cookbook]] |
||
− | * [[User:Lenny222/Haskell explained to the busy|Haskell explained to the busy]] |
||
− | * [[Mac OS X]] |
||
− | |||
− | === Lila === |
||
− | |||
− | ==== Ideas ==== |
||
− | |||
− | * 3d projection |
||
− | ** [http://en.wikipedia.org/wiki/3D_projection 3d projection] |
||
− | * diagrams |
||
− | ** histograms, density plots |
||
− | * export |
||
− | ** SVG |
||
− | ** PDF |
||
− | ** Illustrator JavaScript |
||
− | ** Processing |
||
− | ** SWF |
||
− | ** TikZ/LaTeX |
||
− | * import |
||
− | ** SVG |
||
− | ** PDF |
||
− | * path operations |
||
− | ** boolean operations |
||
− | ** offset path |
||
− | ** http://pyx.sourceforge.net/examples/drawing2/parallel.html |
||
− | ** http://lib2geom.sourceforge.net/ |
||
− | ** http://inkscape.svn.sourceforge.net/viewvc/inkscape/inkscape/trunk/src/live_effects/ |
||
− | * recursive programming |
||
− | ** [http://www.typeer.de/thema/Context-Free-Art---Simple-Schoenheit/ ContextFree] |
||
− | * symbols |
||
− | ** [http://local.wasp.uwa.edu.au/~pbourke/geometry/supershape/ supershape] |
||
− | ** [http://www.jroller.com/aalmiray/entry/jsilhouette_0_3_released symbols] |
||
− | |||
− | ==== Data structures ==== |
||
− | <haskell> |
||
− | data Document = Document{ |
||
− | metaData:: Maybe MetaData |
||
− | , frame:: [Frame] |
||
− | } deriving(Eq, Show) |
||
− | |||
− | data Frame = Frame { |
||
− | } deriving(Eq, Show) |
||
− | |||
− | data Figure = Figure { |
||
− | fill :: Maybe Fill |
||
− | , shape :: Shape |
||
− | , stroke :: Maybe Stroke |
||
− | } deriving(Eq, Show) |
||
− | |||
− | data Fill = Fill { |
||
− | fillPaint :: Paint, |
||
− | } deriving(Eq, Show) |
||
− | |||
− | data Stroke = Stroke { |
||
− | strokePaint :: Paint, |
||
− | , lineWidth :: Double, |
||
− | , dashPattern :: DashPattern |
||
− | , lineCap :: LineCap |
||
− | , lineJoin :: LineJoin |
||
− | , miterLimit :: Double |
||
− | , startSymbol :: Maybe LineEnding |
||
− | , endSymbol :: Maybe LineEnding |
||
− | } deriving(Eq, Show) |
||
− | |||
− | data Paint = |
||
− | SolidColor |
||
− | | Pattern |
||
− | | Gradient |
||
− | deriving(Eq, Show) |
||
− | |||
− | data LineCap = |
||
− | LineCapButt |
||
− | | LineCapRound |
||
− | | LineCapSquare |
||
− | deriving(Eq, Show) |
||
− | |||
− | data LineJoin = |
||
− | LineJoinMiter |
||
− | | LineJoinRound |
||
− | | LineJoinBevel |
||
− | deriving(Eq, Show) |
||
− | |||
− | data Shape = |
||
− | Path |
||
− | | Primitive |
||
− | | Text |
||
− | deriving(Eq, Show) |
||
− | |||
− | data Path = Path { |
||
− | segments :: [Segment] |
||
− | } |
||
− | deriving(Eq, Show) |
||
− | |||
− | data Segment = |
||
− | Move Point |
||
− | | Line { |
||
− | a :: Point |
||
− | , b :: Point |
||
− | } |
||
− | | HorizontalLine { |
||
− | a :: Point |
||
− | , w :: Double |
||
− | } |
||
− | | VerticalLine { |
||
− | a :: Point |
||
− | , h :: Double |
||
− | } |
||
− | | QuadraticBezier Point Point Point |
||
− | | CubicBezier Point Point Point Point |
||
− | deriving(Eq, Show) |
||
− | |||
− | data Point = |
||
− | Node2d Double Double |
||
− | | Node3d Double Double Double |
||
− | deriving(Eq, Show) |
||
− | |||
− | data Primitive = |
||
− | Circle |
||
− | | Ellipse |
||
− | | Rectangle |
||
− | | RegularPolygon |
||
− | | Square |
||
− | | Star |
||
− | deriving(Eq, Show) |
||
− | |||
− | class PathLike a = |
||
− | convertToPath :: a -> Path |
||
− | </haskell> |
||
− | |||
− | === Simplified Haskell homepage === |
||
− | |||
− | [[User:Lenny222/Haskell|A simplified Haskell frontpage]] |
||
− | |||
− | Why? |
||
− | |||
− | * to [http://www.useit.com/alertbox/20020609.html reduce redundancy] |
||
− | |||
− | == Contact == |
||
− | |||
− | Contact me via |
||
− | |||
− | q 4 0 9 |
||
− | |||
− | a t |
||
− | |||
− | k u d l i n g |
||
− | |||
− | d o t |
||
− | |||
− | d e |
||
− | |||
− | |||
− | [http://www.cardus.com/sticky.php?year=7] |