htdp-image-1.0.0.0: Beginner friendly graphics library.

Safe HaskellNone
LanguageHaskell2010

Graphics.Combinator

Description

Utility to combine images.

Synopsis

Documentation

data Alignment Source #

Alignment position

high :: Alignment Source #

Position to align at. On x-axis, low means left, high means right. On y-axis, low means bottom, high means top.

low :: Alignment Source #

Position to align at. On x-axis, low means left, high means right. On y-axis, low means bottom, high means top.

mid :: Alignment Source #

Position to align at. On x-axis, low means left, high means right. On y-axis, low means bottom, high means top.

overlay Source #

Arguments

:: Image
i1
-> Image
i2
-> Image 

Places i1 on the center of i2.

overlayAlign Source #

Arguments

:: Alignment
xAl
-> Alignment
yal
-> Image
i1
-> Image
i2
-> Image 

Places i1 on top of i2 and uses xAl and yAl for alignment.

overlayOffset Source #

Arguments

:: Image
i1
-> Float
x
-> Float
y
-> Image
i2
-> Image 

Places i1 on top of i2 and moves i2 by x pixels to the right, and y pixels down.

overlayXY Source #

Arguments

:: Image
i1
-> Float
x
-> Float
y
-> Image
i2
-> Image 

Places i1 on top of i2 by lining them on their top left corners, then i2 is shifted to the right by x pixels and down by y pixels.

underlay :: Image -> Image -> Image Source #

Same of overlay, but with image arguments flipped.

underlayAlign :: Alignment -> Alignment -> Image -> Image -> Image Source #

Same of overlayAlign, but with image arguments flipped.

underlayOffset :: Image -> Float -> Float -> Image -> Image Source #

Same of overlayOffset, but with image arguments flipped.

underlayXY :: Image -> Float -> Float -> Image -> Image Source #

Same of overlayXY, but with image arguments flipped.

underlayAlignOffset :: Alignment -> Alignment -> Image -> Float -> Float -> Image -> Image Source #

Same of overlayAlignOffset, but with image arguments flipped.

beside Source #

Arguments

:: Image
i1
-> Image
i2
-> Image 

Constructs an image by placing i1 on the left of i2, aligned along the center.

besides Source #

Arguments

:: [Image]
is
-> Image 

Constructs an image by placing all images in a horizontal row, aligned along the center such that the first image in is is on the left.

besideAlign Source #

Arguments

:: Alignment
al
-> Image
i1
-> Image
i2
-> Image 

Constructs an image by placing i1 on the left of i2, aligned as specified by al.

besidesAlign Source #

Arguments

:: Alignment
al
-> [Image]
is
-> Image 

Constructs an image by placing all images in a horizontal row, aligned as specified by al such that the first image in is is on the left.

above Source #

Arguments

:: Image
i1
-> Image
i2
-> Image 

Constructs an image by placing i1 on top of i2, aligned along the center.

aboves Source #

Arguments

:: [Image]
is
-> Image 

Constructs an image by placing all images in a vertical row, aligned along the center such that the first image in is is at the top.

aboveAlign Source #

Arguments

:: Alignment
al
-> Image
i1
-> Image
i2
-> Image 

Constructs an image by placing i1 on top of i2, aligned as specified by al.

abovesAlign Source #

Arguments

:: Alignment
al
-> [Image]
is
-> Image 

Constructs an image by placing all images in a veritcal row, aligned as specified by al such that the first image in is is at the top.

placeImage Source #

Arguments

:: Image
i1
-> Float
x
-> Float
y
-> Image
i2
-> Image 

Places i1 on top of i2 with i1's center at position (x, y). Unlike 2htdp/image's place-image, placeImage increases the binding box so that both images fit in it, instead of cropping parts of i1 that lay outside of i2's bounds.

placeImages Source #

Arguments

:: [Image]
is
-> [(Float, Float)]
ps
-> Image
i2
-> Image 

Places each i in is onto i2 using placeImage, using the coordinates (x, y) in ps.

placeImageAlign Source #

Arguments

:: Image
i1
-> Float
x
-> Float
y
-> Alignment
xAl
-> Alignment
yAL
-> Image
i2
-> Image 

Like placeImage, but anchors i1 on i2 by the alignment specified by xAl and yAl.

placeImagesAlign Source #

Arguments

:: [Image]
is
-> [(Float, Float)]
ps
-> Alignment
xAl
-> Alignment
yAl
-> Image
i2
-> Image 

Like placeImages, but anchors is on i2 by the alignment specified by xAl and yAl.