Closed noyannus closed 1 month ago
That is simply the decimal version. If in e.g. Windows Calculator you select "Programmer" mode, then paste 12632256
and change from DEC to HEX mode, you'll get C0C0C0
.
We should probably support hex import/export? @tobiolo
Thanks.
We should probably support hex import/export?
As one who's not doing the work, I'd say, absolutely. Or, as a first step to ease use, have a documentation page that puts all such info into a single place (or simply includ it in the readme), so we users don't have to bother you with questions or try to figure it out from the source code.
I guess it can be done with a formatted print, see https://cplusplus.com/reference/cstdio/printf/ and some wxFormat overhead to convert back and forth (maybe not needed if directly recognized) But then we have to be backwards compatible...
Probably, export should always be hex (more familiar), and import should support both.
How are the colors in xml coded?
I am trying to set a huge number of cells via xml-export > assign colors > xml-import and don't understand the numerical color values such as "12632256".
In
main.xpp
you assignbut the exported xml has a different format, and the xml import understands neither
0x808080
, nor#808080
. And for an rgb exported gray I'd expect three adjacent identical digit pairs in the value.So, what's your magic?