For the operation of image, the first thing you need to do is to import the image library.
(require 2htdp/image)
The frequently used image functions are below.
1.
(circle radius mode color)
-
2.
(square side-len mode color)
-
3.
(triangle side-length mode color)
-
4.
(overlay i1 i2 is ...)
The images are all lined up on their centers.
-
5.
(overlay/align x-place y-place i1 i2 is ...)
using x-place and y-place to determine where the images are lined up
-
6.
(place-image image x y scene)
Places image onto scene with its center at the coordinates (x,y) and
crops the resulting image so that it has the same size as scene. The
coordinates are relative to the top-left of scene.