Difference between revisions of "User:Lenny222"

From HaskellWiki
Jump to navigation Jump to search
Line 15: Line 15:
   
 
==== Todo ====
 
==== Todo ====
 
* Shape => Ellipse, Rectangle, etc :: Object
 
   
 
* EPS export
 
* EPS export

Revision as of 14:43, 20 December 2009

Things i think need improvement

Chlor

Todo

  • EPS export
  • 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" />
  • SVG XML generation
    • HStringTemplate?
    • HXT?
    • HaXml?
  • Shape
    • Sine (Box, phases)
  float sqrt2 = sqrt(2);
  float x0 = 0.0;
  float y0 = 0.0;
  float x1 = x0 + PI / 12.0;
  float y1 = y0 + (2 * sqrt2 - 1 ) / 7.0;
  float x2 = x0 + PI / 6.0;
  float y2 = y0 + (4 * sqrt2 - 2) / 7.0;
  float x3 = x0 + PI / 4.0;
  float y3 = y0 + 0.5 * sqrt2;
  float x4 = x0 + PI / 3.0;
  float y4 = y0 + (3 * sqrt2 + 2) / 7.0;
  float x5 = x0 + 5 * PI / 12.0;
  float y5 = y0 + 1.0;
  float x6 = x0 + PI / 2.0;
  float y6 = y5;
  float x7 = x0 + 7.0 * PI / 12.0;
  float y7 = y5;
  float x8 = x0 + 2.0 * PI / 3.0;
  float y8 = y4;
  float x9 = x0 + 3.0 * PI / 4.0;
  float y9 = y3;
  float x10 = x0 + 5.0 * PI / 6.0;
  float y10 = y2;
  float x11 = x0 + 11.0 * PI / 12.0;
  float y11 = y1;
  float x12 = x0 + PI;
  float y12 = y0;
  float x13 = x0 + PI + PI / 12.0;
  float y13 = -y1;
  float x14 = x0 + PI + PI / 6.0;
  float y14 = -y2;
  float x15 = x0 + PI + PI / 4.0;
  float y15 = -y3;
  float x16 = x0 + PI + PI / 3.0;
  float y16 = -y4;
  float x17 = x0 + PI + 5 * PI / 12.0;
  float y17 = -y5;
  float x18 = x0 + 1.5 * PI;
  float y18 = -y5;
  float x19 = x0 + PI + 7.0 * PI / 12.0;
  float y19 = -y5;
  float x20 = x0 + PI + 2.0 * PI / 3.0;
  float y20 = -y4;
  float x21 = x0 + PI + 3.0 * PI / 4.0;
  float y21 = -y3;
  float x22 = x0 + PI + 5.0 * PI / 6.0;
  float y22 = -y2;
  float x23 = x0 + PI + 11.0 * PI / 12.0;
  float y23 = -y1;
  float x24 = x0 + 2 * PI;
  float y24 = y0;
    • Spiral
    • Star
  • Diagram
    • Pie (only for displaying fractions)
  • Layout
    • Instances
      • Column
      • Grid (cols, rows, margins)
      • Margin/Frame
        • content size (absolute, relative, remaining)
        • margin sizes (absolute, relative, remaining)
  • use HLint
  • AffineTransformation
  • Path
    • approximate :: [Vector2D] -> [Segment]

Ideas

  • layout
    • Table
    • SpaceHorizontal
    • SpaceVertical

Simplified Haskell homepage

A simplified Haskell frontpage

Why?