funcmp-1.7: Functional MetaPost

Portabilityportable
Stabilityprovisional
Maintainersimons@cryp.to
Safe HaskellSafe-Inferred

FMP.Picture

Description

 

Documentation

(|-|) :: (IsPicture a, IsPicture b) => a -> b -> Picture

(|||) :: (IsPicture a, IsPicture b) => a -> b -> Picture

(|=|) :: (IsPicture a, IsPicture b) => a -> b -> Picture

(||||) :: (IsPicture a, IsPicture b) => a -> b -> Picture

(#) :: a -> (a -> b) -> b

(.&.) :: (IsPath a, IsPath b) => a -> b -> Path

(...) :: (IsPath a, IsPath b) => a -> b -> Path

(.-.) :: (IsPath a, IsPath b) => a -> b -> Path

(....) :: (IsPath a, IsPath b) => a -> b -> Path

(.--.) :: (IsPath a, IsPath b) => a -> b -> Path

class IsPath a where

Methods

toPath :: a -> Path

toPathList :: [a] -> Path

Instances

IsPath Char 
IsPath Point 
IsPath Name 
IsPath Path 
IsPath a => IsPath [a] 
(Real a, Real b) => IsPath (a, b) 

class IsArea a where

Methods

toArea :: a -> Area

Instances

class HasPicture a where

Methods

fromPicture :: IsPicture b => b -> a

Instances

class HasName a where

Methods

setName :: IsName b => b -> a -> a

getNames :: a -> [Name]

class HasDXY a where

Methods

setDX :: Numeric -> a -> a

getDX :: a -> Maybe Numeric

setDY :: Numeric -> a -> a

getDY :: a -> Maybe Numeric

Instances

class HasExtent a where

Methods

setWidth :: Numeric -> a -> a

removeWidth :: a -> a

getWidth :: a -> Maybe Numeric

setHeight :: Numeric -> a -> a

removeHeight :: a -> a

getHeight :: a -> Maybe Numeric

Instances

class HasLabel a where

Methods

setLabel :: IsPicture b => Double -> Dir -> b -> a -> a

removeLabel :: a -> a

class HasPen a where

Methods

setPen :: Pen -> a -> a

setDefaultPen :: a -> a

getPen :: a -> Pen

class HasStartEndCut a where

Methods

setStartCut :: IsName b => b -> a -> a

removeStartCut :: a -> a

setEndCut :: IsName b => b -> a -> a

removeEndCut :: a -> a

class HasStartEndDir a where

Methods

setStartAngle :: Numeric -> a -> a

setEndAngle :: Numeric -> a -> a

setStartCurl :: Numeric -> a -> a

setEndCurl :: Numeric -> a -> a

setStartVector :: Point -> a -> a

setEndVector :: Point -> a -> a

removeStartDir :: a -> a

removeEndDir :: a -> a

class HasJoin a where

Methods

setJoin :: BasicJoin -> a -> a

getJoin :: a -> BasicJoin

class HasShadow a where

Methods

setShadow :: (Numeric, Numeric) -> a -> a

clearShadow :: a -> a

getShadow :: a -> Maybe (Numeric, Numeric)

class HasLayer a where

Methods

setBack :: a -> a

setFront :: a -> a

getLayer :: a -> Layer

Instances

enumPics :: HasName a => [a] -> [a]

data Layer

Constructors

Front 
Back 

Instances

data BitDepth

Constructors

Depth1 
Depth8 
Depth24 

row :: IsPicture a => [a] -> Picture

column :: IsPicture a => [a] -> Picture

rowSepBy :: IsPicture a => Numeric -> [a] -> Picture

fill :: (IsPicture a, IsArea b) => [b] -> a -> Picture

clip :: IsPicture a => Path -> a -> Picture

draw :: IsPicture a => [Path] -> a -> Picture

at :: (IsPicture a, IsPicture b) => Dir -> a -> b -> Picture

label :: (IsPicture a, IsPicture b) => Dir -> a -> b -> Picture

overlay :: IsPicture a => [Equation] -> [a] -> Picture

overlay' :: IsPicture a => [Equation] -> Maybe Int -> [a] -> Picture

ooalign :: IsPicture a => [a] -> Picture

class HasDefine a where

Methods

define :: [Equation] -> a -> a

scale :: IsPicture a => Numeric -> a -> Picture

skewX :: IsPicture a => Numeric -> a -> Picture

skewY :: IsPicture a => Numeric -> a -> Picture

line :: (IsPath a, IsPath b) => a -> b -> Path

curve :: (IsPath a, IsPath b) => a -> b -> Path

arrow :: (IsPath b, IsPath a) => a -> b -> Path

data Attrib

Constructors

Attrib 

Fields

aNames :: [Name]
 
aColor :: Color
 
aBGColor :: Color
 

pathLength :: Num a => Path -> a

data AreaDescr

Constructors

AreaDescr 

Fields

arColor :: Color
 
arLayer :: Layer
 
arPen :: Pen
 

getDefault :: Maybe a -> a -> a

data AbsOrRel

Instances

box :: IsPicture a => a -> Frame

triangle :: IsPicture a => a -> Frame

rbox :: IsPicture a => Numeric -> a -> Frame

oval :: IsPicture a => a -> Frame

circle :: IsPicture a => a -> Frame