From c8f158f5d5e020882a92bbc3c894a296d1983fdd Mon Sep 17 00:00:00 2001
From: Matthias Felleisen The teachpack provides two kinds of functions. The first five allow
students to simulate a small world of animated drawings and games:
- The Stop
button on the frame allows users to stop the clock
- and thus the simulation. It also enables the Images
button,
- which then allows users to create images of all the steps taken since the
- beginning of time.
+
The teachpack assumes two basic kinds of data: +
World
, which is something you must define;
+Image
, which are either inserted into DrScheme via the
+ "Special" menu or constructed from the functions below; and
+Scene
, which are created from Image
s. Indeed,
+ they are just special images.
+{(idx big-bang)} : Nat Nat Number World -> true
(empty-scene width height)
creates a width x height "scene" (frame with origin in NW)
-{(idx place-image)} : Image Number Number Scence -> Scene
{(idx place-image)} : Image Number Number Scene -> Scene
(place-image image x y scene)
places image at (x,y) into scene; (x,y) are comp. graph. coordinates