Skip to content

fix: carry every odometer digit on the middle of its slot - #86

Open
sjquant wants to merge 1 commit into
mainfrom
odometer-digit-centering
Open

fix: carry every odometer digit on the middle of its slot#86
sjquant wants to merge 1 commit into
mainfrom
odometer-digit-centering

Conversation

@sjquant

@sjquant sjquant commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Why

An odometer reserves one fixed-width slot per digit so a growing number cannot shift sideways as it counts. Each digit was then set against the left edge of its slot, which puts the whole reserve on one side. In a display face whose 1 is far narrower than its widest digit, 148 reads as 1 48 — a hole in the middle of the number.

Changes

  • A digit is now carried in the middle of its slot, the way a wheel carries one, so the reserve is split rather than dumped to its right
  • Slot widths and the block's total width are untouched, so the sideways stability the slots exist for is unchanged, during the roll as well as at rest

An odometer reserves one fixed-width slot per digit so a growing number
cannot shift sideways as it counts. Each digit was then set against the
left edge of its slot, which puts the whole reserve on one side: in a
display face whose 1 is far narrower than its widest digit, 148 reads as
1 48 with a hole in the middle of the number.

A wheel carries its digit in the middle, so the reserve is split. Slot
widths and the block's total width are untouched, so the stability the
slots exist for is unchanged.
@sjquant sjquant closed this Aug 6, 2026
@sjquant sjquant reopened this Aug 6, 2026
@sjquant sjquant closed this Aug 7, 2026
@sjquant sjquant reopened this Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant