diff --git a/collects/htdch/draw/World-native-methods.ss b/collects/htdch/draw/World-native-methods.ss index 85b372645e..a4ff32bb7e 100644 --- a/collects/htdch/draw/World-native-methods.ss +++ b/collects/htdch/draw/World-native-methods.ss @@ -72,7 +72,9 @@ (sleep-for-a-while s)) |# - (define/provide (bigBang-double-native this accs gets privates #;width #;height i) + (define/provide (bigBang-int-int-double-native this accs gets privates width height i) + (define theCanvas ((hash-table-get accs 'theCanvas) this)) + (send theCanvas start-int-int width height) (big-bang i this) (on-tick-event (lambda (world) diff --git a/collects/htdch/draw/World.java b/collects/htdch/draw/World.java index c8951b669f..3cdc2b3fe0 100644 --- a/collects/htdch/draw/World.java +++ b/collects/htdch/draw/World.java @@ -4,7 +4,7 @@ public abstract class World { public Canvas theCanvas = new Canvas(); - public native boolean bigBang(/* int width, int height,*/ double s); + public native boolean bigBang(int width, int height, double s); public native boolean endOfTime(); diff --git a/collects/htdch/draw/doc.txt b/collects/htdch/draw/doc.txt index ad459aea8c..2d7c27d5ec 100644 --- a/collects/htdch/draw/doc.txt +++ b/collects/htdch/draw/doc.txt @@ -1,5 +1,4 @@ -This `draw' package provides libraries for modeling in a visual world. It -consists of two sets of classes: +This `draw' package provides libraries for modeling in a visual world: +----------+ +----------+ @@ -30,16 +29,16 @@ consists of two sets of classes: + White + Yellow - +-------+ - | Color | - +-------+ - | - / \ - --- - | - ------------------------------------------ - | | | | | - +-------+ +-------+ +-------+ +-------+ +-------+ - | Blue | | Green | | Red | | White | | Yellow| - +-------+ +-------+ +-------+ +-------+ +-------+ + +-------+ + | Color | + +-------+ + | + / \ + --- + | + ------------------------------------------ + | | | | | + +-------+ +-------+ +-------+ +-------+ +-------+ + | Blue | | Green | | Red | | White | | Yellow| + +-------+ +-------+ +-------+ +-------+ +-------+