Tiles Teachpack
1 This teachpack
The tiles teachpack provides a variety of functions for combining and manipulating images. Imagine that each image were on a ceramic tile; you would expect to be able to put two tiles together side by side, or one above another, or rotate a tile, etc. That’s exactly what this teachpack provides.
img1 : image? |
img2 : image? |
Combines two or more images into one, putting the first above the second (above the third, ...).
img1 : image? |
img2 : image? |
Just like image-above, but lines up the right-hand edges of all the images.
img1 : image? |
img2 : image? |
Just like image-above, but lines up the left-hand edges of all the images.
img1 : image? |
img2 : image? |
Just like image-above, but lines up the centers of all the images.
img1 : image? |
img2 : image? |
Combines two or more images into one, putting the first to the left of the second (to the left of the third, ...).
img1 : image? |
img2 : image? |
Just like image-beside, but lines up the top edges of all the images.
img1 : image? |
img2 : image? |
Just like image-beside, but lines up the bottom edges of all the images.
img1 : image? |
img2 : image? |
Just like image-beside, but lines up the centers of all the images.
img : image? |
Flips an image top-to-botom.
img : image? |
Flips an image left-to-right.
img : image? |
Flips an image from top-right to bottom-left, leaving the top-left and bottom-right unchanged.
img : image? |
Flips an image from top-left to bottom-right, leaving the top-right and bottom-left unchanged.
img : image? |
Rotates an image 90 degrees clockwise.
img : image? |
Rotates an image 90 degrees counterclockwise.
img : image? |
Rotates an image 180 degrees around its center.
img : image? |
Overlays a small black dot at the pinhole of the given image, so you can see where it is. (This function will go away when pinholes go away....)
img : image? |
pixels : natural-number/c |
Chops off the specified number of pixels from the top of the image.
img : image? |
pixels : natural-number/c |
Chops off the specified number of pixels from the bottom of the image.
img : image? |
pixels : natural-number/c |
Chops off the specified number of pixels from the left side of the image.
img : image? |
pixels : natural-number/c |
Chops off the specified number of pixels from the right side of the image.
2 Functions from image.ss
Since anybody using these functions will almost certainly also want to use other image-creation and image-manipulation functions, this teachpack includes the standard teachpack image.ss. That is, if you have tiles.ss loaded, you don’t also need image.ss (and you’re better off not loading it).