Skip to content

[WIP] feat: simple hex data colorization#381

Open
CreeperLin wants to merge 1 commit intomicrosoft:mainfrom
CreeperLin:main
Open

[WIP] feat: simple hex data colorization#381
CreeperLin wants to merge 1 commit intomicrosoft:mainfrom
CreeperLin:main

Conversation

@CreeperLin
Copy link
Copy Markdown

image

Colorize hex data by treating each byte as an 8-bit color (3, 3, 2 bits for R, G and B). I find it useful visualizing binary data with unknown format.

Also an implementation on #279, although using RGB instead of HSL, and the alpha is currently fixed at 0.5.

If this feature is desirable, options to toggle it and change the alpha value and even palettes can be added in the future.

Copy link
Copy Markdown

@spatoa spatoa left a comment

Choose a reason for hiding this comment

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

I would prefer a toggle option for something like this as I find it harder to read the data in some areas.

@Antecer
Copy link
Copy Markdown
Contributor

Antecer commented Oct 30, 2024

The visual experience is terrible, you need to reduce the brightness and saturation of the colors so as not to interfere with the reading of the data.

@BarionLP
Copy link
Copy Markdown

BarionLP commented Apr 5, 2026

would you still work on this?
byte colorization is essential for pattern recognition and the extension really lacks that feature

the important part is the color mapping. I think just interpreting it as an 8bit color makes little sense.
This guy put together a really good color scheme (in my opinion):

https://simonomi.dev/blog/color-code-your-bytes/

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.

4 participants