Repository navigation
Draw a solid half-block cell as its background, not █ - #110
Merged
Merged
Conversation
A cell whose two halves are one colour was written as a bare █ in that colour. Clients that draw █ from the font (BeipMU among them) fill only the glyph's height, which is about two thirds of a line, so a logo drawn as half blocks came out striped wherever it was solid. A space on that background fills the whole cell in every client, and still writes no cell whose foreground equals its background. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rqqt7TMy1WfPj9wScEbqyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Grave · project thread
Problem
In BeipMU, SharpMUSH Community's login logo is striped. The logo is
figure()drawn as half blocks (TerminalPictureWriter.EncodeBlockArt).I measured BeipMU's screenshot. Lines there are 62 px apart, but a
█is painted only from 14 px to 55 px (the glyph's height). A cell's background, on the other hand, fills all 62 px. Every cell of the logo with a background was solid: 53 of 53. Every bare█/▀/▄was short: 176 of 176. Since 2.31.3, a cell whose halves are one colour has been written as a bare█, so the solid parts of a picture are exactly the striped ones.Change
A cell whose halves are one colour (at the client's depth) is now written as a space on that background. The foreground is left at the run's own. A background fills the whole cell in every client, and no cell has a foreground equal to its background, so 2.31.3's hidden-text fix still holds. Cells with two colours or a transparent half are unchanged.
What's left in BeipMU are the edges where one half is transparent (
▀/▄on the default background). They still depend on BeipMU's glyph height, and that is BeipMU's to fix.Tests
BlockArtDrawsASolidCellAsItsBackgroundis new.BlockArtDrawsTwoPixelsACell,BlockArtMergesHalvesTheDepthMakesEqualandBlockArtFollowsTheColourDepthnow expect backgrounds instead of█.Generated by Claude Code