htdp-image-1.0.0.0: Beginner friendly graphics library.

Graphics.Combinator

Description

Utility to combine images.

Synopsis

# Documentation

data Alignment Source #

Alignment position

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

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

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

Arguments

 :: Image i1 -> Image i2 -> Image

Places i1 on the center of i2.

Arguments

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

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

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.

Combination of overlayAlign and overlayOffset.

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.

Same of overlay, but with image arguments flipped.

Same of overlayAlign, but with image arguments flipped.

Same of overlayOffset, but with image arguments flipped.

Same of overlayXY, but with image arguments flipped.

Same of overlayAlignOffset, but with image arguments flipped.

Arguments

 :: Image i1 -> Image i2 -> Image

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

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.

Arguments

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

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

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.

Arguments

 :: Image i1 -> Image i2 -> Image

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

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.

Arguments

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

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

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.

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.

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.

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.

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.