Just a little thing, but someone asked how they could display images if they weren't using DrRacket.
Note
I resisted the urge to tell them to use DrRacket because while it is great - it is not right for everyone.
It's not the first time someone has asked so I added 'How do I display images outside of DrRacket?' to the Racket Frequently Asked Questions:
How do I display images outside of DrRacket?
If you use DrRacket images are displayed inline, but many other editors and terminal emulators lack this capability.
In general you can use the show-pict
function to open a window and display the image.
#lang racket
(require pict)
...
(show-pict your-pict)
See show-pict
Note: If you are using a different image library convert your image with pict-convert
.
I've put the full list below - I'd like to know if there is anything missing from the FAQ that should be included?
- Does Racket have a compiler?
- What is 'BC' in Racket(BC)?
- How fast is Racket?
- Can you Hot-Load or hot-swap code without having to restart long running processes?
- Why is the Racket REPL different to Common Lisp?
- Why Hygienic Macros?
- Where is the GUI builder?
- Can I run Racket on Android?
- Can I integrate Racket with other programming languages?
- What is the difference between pict, draw, metapict and 2htdp image?
- Why do Racketeers say "The toplevel is hopeless?"
- Units discussion
- How do I display images outside of DrRacket?
- Timezone Lookup (an adventure in program optimization)
best regards
Stephen