dia-base-0.1.1.4: An EDSL for teaching Haskell with diagrams - data types

Safe HaskellSafe
LanguageHaskell98

Graphics.Diagrams.Types

Description

Diagrams data types

Synopsis

Documentation

type Point = (Double, Double) Source

Point type as defined in the diagrams package

data Diagram Source

Diagram data type

Constructors

EmptyDiagram

empty diagram

Circle Double

circle with radius

Rect Double Double

rectangle; width and height

Polyline Bool [Point]

True: polygon; False: polyline

Text Position String

text at a given position

Move Point Diagram

move

Scale Double Diagram

scale

ScaleXY Double Double Diagram

scale differently at x and y axes

Rotate Double Diagram

rotate (degree)

TransformMatrix Double Double Double Double Double Double Diagram

used internally

Clip Point Point Diagram

clip a rectangle region (lower-left and upper-right corners)

Fill Color Diagram

fill with color

Stroke Color Diagram

set stroke color | FillOpacity Double Diagram -- ^ set fill opacity | StrokeOpacity Double Diagram -- ^ set stroke opacity

StrokeWidth Double Diagram

set stroke width

FontFamily String Diagram

set font family

Link String Diagram

add an html link

Overlay Diagram Diagram

overlay (the second diagram is over the first one)

Pack Diagram (Diagram -> Diagram)

pack a diagram (kind of let-construct to save resources)

Group Diagram Int Diagram

used internally

Ref Int

used internally

Error String Diagram

used internally

Instances

data Position Source

Text positions

Constructors

Start

beginning of text is fixed

Middle

middle of text is fixed

End

end of text is fixed

data Color Source

colors

Constructors

Color String

named color

RGB Double Double Double

RGB color (components are between 0 and 1)