Suggestion: Color Structs and Data Types #2427
Replies: 4 comments 2 replies
-
Hey! We already have support for this kind of thing in the Pattern Language through inline visualizers. You can read more about them here: https://docs.werwolv.net/imhex/views/pattern-data#inline-visualizers The same thing can also be used in the data inspector by defining a custom inspector row using a small pl script: https://docs.werwolv.net/imhex/views/data-inspector#adding-new-rows |
Beta Was this translation helpful? Give feedback.
-
I guess you didnt see my response to your previous post on this issue. there are already color types and i posted a link there. |
Beta Was this translation helpful? Give feedback.
-
color types: https://docs.werwolv.net/pattern-language/libraries/type/color.pat |
Beta Was this translation helpful? Give feedback.
-
Ok, both are interesting, but none let me edit the color values... type::RGBA8 had a nice value showing each color channel, which is good, it even sets the color of the section, but name can't be changed and value can't be edited. hex::inline_visualize("color") is looks really nice, while letting me edit the separated values within this color struct, really good, but the data section from Hex editor can't be colored... Thank you for both suggestions tho, but I still think a way to set the struct section color from Hex editor would be a nice addition. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I noticed that Data Inspector have RGB8 and RGB565 Color, I think it would be nice if we actually had color Data Types to use within Pattern Language as well. Alternatively I wish we could [[color(RRGGBB)]] a Struct, since I'm working with something that has palettes, the RGBColor struct has RGBA, sometimes BGRA (inverted alpha even), ideally would be nice to specify the color order and format (e.g. rgb, hex, decimal, etc). But coloring Structs right now would work well for me!
Ah, since structs may have more data inside, perhaps make it so colored structs are a priority in Hex editor and Pattern data, only showing item color if explicitly specified as well in this case.
Beta Was this translation helpful? Give feedback.
All reactions