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

Allow for removing the inset in 2htdp/universe #235

Open
a11ce opened this issue Dec 11, 2024 · 1 comment · May be fixed by #237
Open

Allow for removing the inset in 2htdp/universe #235

a11ce opened this issue Dec 11, 2024 · 1 comment · May be fixed by #237
Labels
teachpack [2]htdp teachpack

Comments

@a11ce
Copy link
Contributor

a11ce commented Dec 11, 2024

Currently, 2htdp/universe adds a small inset to the drawn image. For example,

(require 2htdp/universe
         2htdp/image)

(big-bang (square 100 'solid 'purple)
  [on-draw values])

looks like this:Image

The inset is defined here and used here. I want to add the ability to turn off this inset (or to remove it as an option, but presumably whoever added it has a different aesthetic opinion).

Would it be best to add it as a big-bang clause? That doesn't seem ideal as it's not really a significant decision. Maybe a different display-mode option ('borderless)?

I'm happy to make the change but I know htdp has special design considerations so I'm asking how to proceed.

@mfelleisen
Copy link
Contributor

If I recall correctly, I added the INSET in response to another user. I am not sure turning it off deservers a world clause because this is just not at the same conceptual level as existing clauses. (These clauses make up an ontology of specifying the world, not really its appearance.)

If this is for use in plain Racket, it might be best to export a parameter that allows disabling the INSET.

If this for use in *SLs, I'd be reluctant to change this.

@a11ce a11ce linked a pull request Dec 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
teachpack [2]htdp teachpack
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants