Difference between revisions of "User:Lenny222"

From HaskellWiki
Jump to navigation Jump to search
Line 6: Line 6:
 
* [[User:Lenny222/Haskell explained to the busy|Haskell explained to the busy]]
 
* [[User:Lenny222/Haskell explained to the busy|Haskell explained to the busy]]
 
* [[Mac OS X]]
 
* [[Mac OS X]]
  +
  +
=== Graphic Language ===
  +
<haskell>
  +
Figure = Figure {
  +
fill :: Fill
  +
, shape :: Shape
  +
, stroke :: Stroke
  +
}
  +
  +
Fill = Fill {
  +
paint :: Paint,
  +
}
  +
  +
Stroke = Stroke {
  +
paint :: Paint,
  +
, strokeWidth :: Double,
  +
, dashPattern :: DashPattern
  +
--, miterLimit ::
  +
}
  +
  +
Paint =
  +
SolidColor
  +
| Pattern
  +
| Gradient
  +
  +
Shape =
  +
Path
  +
| Primitive
  +
| Text
  +
  +
Primitive =
  +
square
  +
| circle
  +
| ellipse
  +
| rectangle
  +
  +
class PathLike a =
  +
convertToPath :: a -> Path
  +
</haskell>
   
 
=== Simplified Haskell homepage ===
 
=== Simplified Haskell homepage ===

Revision as of 16:23, 16 November 2009

Things i think need improvement

Graphic Language

Figure = Figure {
	  fill :: Fill
	, shape :: Shape
	, stroke :: Stroke
	}

Fill = Fill {
	  paint :: Paint,
	}

Stroke = Stroke {
	  paint :: Paint,
	, strokeWidth :: Double,
	, dashPattern :: DashPattern
	--, miterLimit :: 
	}

Paint =
	  SolidColor
	| Pattern
	| Gradient

Shape =
	  Path
	| Primitive
	| Text

Primitive =
	  square
	| circle
	| ellipse
	| rectangle

class PathLike a =
	convertToPath :: a -> Path

Simplified Haskell homepage

A simplified Haskell frontpage

Other programming language homepages:

Contact

Contact me via

q 4 0 9

a t

k u d l i n g

d o t

d e


[1]