Remove the teachpacks (via the menu). Then use Matthias's code (all of it, including the first line).
Robby On Thu, Feb 23, 2012 at 1:18 PM, ROELOF WOBBEN <[email protected]> wrote: > I have added the image.ss teachpack. > I have no clue how the 2e image teachpack is named in Dr Racket 2.5.1. > > Roelof > > > Op 23/02/12, Robby Findler <[email protected]> schreef: > > I think possibly Roelof has added the HtDP image teachpack, not the > HtDP/2e image teachpack. :( > > Robby > > On Thu, Feb 23, 2012 at 12:58 PM, Matthias Felleisen > <[email protected]> wrote: >> >> The code was developed in BSL. You must have forgotten to copy and paste >> the require line. >> >> >> On Feb 23, 2012, at 1:52 PM, ROELOF WOBBEN wrote: >> >>> >>> >>> Op 23/02/12, Matthias Felleisen <[email protected]> schreef: >>>> >>>> Here is a high-riding American SUV, does this help? >>>> >>>> >>>> (require 2htdp/image) >>>> >>>> (define cab (beside (rectangle 33 18 'solid 'red) (right-triangle 10 18 >>>> 'solid 'red))) >>>> (define body (rectangle 100 30 'solid 'red)) >>>> (define top (above/align 'right cab body)) >>>> (define tire (circle 15 'solid 'black)) >>>> (define bot (beside tire (rectangle 25 10 'solid 'white) tire)) >>>> >>>> (above top bot) >>>> >>>> >>>> >>> When I try your example in the Beginng Student language with the Image >>> teach packett I get this error : >>> >>> beside: this function is not defined >>> >>> Roelof >>> >>> ____________________ >>> Racket Users list: >>> http://lists.racket-lang.org/users >> >> >> ____________________ >> Racket Users list: >> http://lists.racket-lang.org/users > > > ____________________ > Racket Users list: > http://lists.racket-lang.org/users > ____________________ Racket Users list: http://lists.racket-lang.org/users

