From 2d34d9a26c9625ea44dfff1fa5900be58f825fec Mon Sep 17 00:00:00 2001 From: Matthias Felleisen Date: Sun, 11 Dec 2005 23:54:26 +0000 Subject: [PATCH] world.thmlt +on-redraw -update svn: r1584 --- teachpack/htdp/Docs/world.thtml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/teachpack/htdp/Docs/world.thtml b/teachpack/htdp/Docs/world.thtml index 0478cb9f20..37e9c745b9 100644 --- a/teachpack/htdp/Docs/world.thtml +++ b/teachpack/htdp/Docs/world.thtml @@ -15,9 +15,10 @@ students to simulate a small world of animated drawings and games: (on-tick-event tock) means that DrScheme must call tock on the current world every time the clock ticks; it uses the result as the next world -
  • on-key-event : (KeyEvent World -> World) -> true
    +
  • on-key-event : (World KeyEvent -> World) -> true
    (on-key-event change) means that DrScheme must call - change on the current world for every keystroke event; it uses + change on the current world and a (representation of the) + keyevent for every keystroke the programmer (user of the computer) makes; it uses the result as the next world
    @@ -37,11 +38,10 @@ students to simulate a small world of animated drawings and games:
        calls world->image whenever the canvas must be redrawn; the
        result is displayed in the teachpack's canvas 
     
    -
  • end-of-time : -> World
    - When DrScheme evaluates (end-of-time), it stops the clock; no - further tick events, key events, or redraw events take place until the world - is created again. -

    +
  • end-of-time String u Symbol : -> World
    When DrScheme + evaluates (end-of-time), it stops the clock and displays the + given string or symbol; no further tick events, key events, or redraw events + take place until the world is created again.

    The rest are functions for creating scenes:

    @@ -66,6 +66,3 @@ students to simulate a small world of animated drawings and games:

    Finally, the teachpack provides all the functions that image.ss provides.

    {(include "foot.tinc")} - - -