racket / racket/htdp

Allow for removing the inset in 2htdp/universe

Open
#235 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement teachpack
Dominant language
Racket
Stars
112
Forks
73
Avg merge
9h 41m
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the inset definition in htdp-lib/2htdp/private/check-aux.rkt and its use in htdp-lib/2htdp/private/world.rkt. Determine how the option should fit 2htdp/universe's existing API, then confirm that the reported example can disable the inset without changing the default behavior.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.