[racket] Run rocket lunching program in HtDP2 from cammand line

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Tue Jan 11 08:43:26 EST 2011

On my Mac, 

  $ racket rocket.rkt 

works just fine, though I will say I am surprised how long it takes to display the canvas. 

-- Matthias



On Jan 10, 2011, at 10:20 PM, tungsh wrote:

> 
> Is their a way to lunch the rocket in the following program
> using command line?
> ;;
> ;; d:/animate.rkt
> ;;
> (require 2htdp/image)
> (require 2htdp/universe)
> (define rocket (bitmap "d:/rocket.png"))
> (define (create-rocket-scene height)
>    (place-image rocket 50 height (empty-scene 100 100)))
> (animate create-rocket-scene)
> 
> I tried "Gracket.ext -f d:/animate.rkt" but nothing happen.
> 
> Thanks!
> 
> Sho-Huan
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users



Posted on the users mailing list.