From c8f158f5d5e020882a92bbc3c894a296d1983fdd Mon Sep 17 00:00:00 2001 From: Matthias Felleisen Date: Fri, 4 May 2007 02:04:16 +0000 Subject: [PATCH] world plus scene svn: r6133 --- collects/teachpack/htdp/Docs/world.thtml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/collects/teachpack/htdp/Docs/world.thtml b/collects/teachpack/htdp/Docs/world.thtml index 7c3820c6c5..a2dbcff825 100644 --- a/collects/teachpack/htdp/Docs/world.thtml +++ b/collects/teachpack/htdp/Docs/world.thtml @@ -4,7 +4,7 @@

The teachpack provides two kinds of functions. The first five allow students to simulate a small world of animated drawings and games:

-
  • {(idx run-simulation)} : Nat Nat Number [Nat -> Image] -> true
    +
  • {(idx run-simulation)} : Nat Nat Number [Nat -> Scene] -> true
    (run-simulation width height r create-image) creates and shows a width x height canvas, starts a clock, ticking every r (usually fractional) seconds, @@ -28,11 +28,17 @@ 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 Images. Indeed, + they are just special images. +
    • +

  • {(idx big-bang)} : Nat Nat Number World -> true
    @@ -114,7 +120,7 @@ students to simulate a small world of animated drawings and games: (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