Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add universe-inset parameter #237

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions htdp-doc/teachpack/2htdp/scribblings/universe.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -2034,3 +2034,15 @@ Finally, here is the third function, which renders the state as an image:
@bold{Exercise} Design a function that takes care of a world to which the
universe has lost its connection. Is @emph{Result} the proper contract for
the result of this function?

@section[#:tag "universe-extra"]{Extra Features in Racket}

This section documents features of the universe teachpack not available in
the HtDP student languages.

@defparam[universe-inset inset-width (integer-in 0 1000)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the named constant instead of 1000.

#:value 5]{
A @tech[#:doc '(lib "scribblings/guide/guide.scrbl")]{parameter} that controls
the visual inset of the window displayed by @racket[animate] or @racket[big-bang].
The inset usually appears as a white border.
}