[prev in list] [next in list] [prev in thread] [next in thread] 

List:       racket-users
Subject:    [racket] Planet Cute in the teaching languages
From:       robby () eecs ! northwestern ! edu (Robby Findler)
Date:       2013-08-27 20:41:04
Message-ID: CAL3TdOMum58coZMJBOoq0_uAye7Qz2dj=6+9fj+TSRD24mt0+g () mail ! gmail ! com
[Download RAW message or body]

It should be. The program from the docs (as below) produces the expected
image in the teaching languages in the git head version, at least.

Robby

(require 2htdp/planetcute)
(require 2htdp/image)
; stack : non-empty-list-of-images -> image
; stacks 'imgs' on each other, separated by 40 pixels
(define (stack imgs)
  (cond
    [(empty? (rest imgs)) (first imgs)]
    [else (overlay/xy (first imgs)
                      0 40
                      (stack (rest imgs)))]))
(beside/align
 "bottom"
 (stack (list wall-block-tall stone-block))
 (stack (list character-cat-girl
              stone-block stone-block
              stone-block stone-block))
 water-block
 (stack (list grass-block dirt-block))
 (stack (list grass-block dirt-block dirt-block)))



On Tue, Aug 27, 2013 at 8:14 AM, Jens Axel S?gaard <jensaxel at soegaard.net>wrote:

> Is it possible to use Planet Cute in the teaching languges?
>
> From the documentation I get the feeling there is supposed
> to be a teachpack, but I can't find any.
>
> After  (require 2htdp/planetcute) using any identifiers from
> the module provokes an error.
>
> http://docs.racket-lang.org/teachpack/2htdpPlanet_Cute_Images.html
>
> --
> Jens Axel S?gaard
>
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130827/908f63c1/attachment-0001.html>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic