On Sat, 5 Dec 2020 19:26:30 -0800 (PST), Yi Chen
<
cy691...@gmail.com> wrote:
> #lang slideshow
> (define cat <some_picture>)
> (image-width (cat))
There is no function "image-width" in slideshow.
see:
https://docs.racket-lang.org/search/index.html?q=image-width
To use "image-width" you must require one of these library modules:
- htdp/image
- 2htdp/image
- quadwriter
Additionally your syntax is wrong: it should be "(image-width cat)".
With the parentheses, "(cat)" is a call of a function named "cat" -
however "cat" is not a function but simply an image.
Hope this helps,
George