vscode-colorize
vscode-colorize copied to clipboard
Adding ABGR support
Hey there, I'm getting introduced to this new graphics API agnostic thing called bgfx, and I came across the issue of being forced to use ABGR instead of ARGB HEX code for colors, so I've decided to add the coloring functionality to the extension. What I want to know is if I can merge the modifications that I've made, in the repo, and so, how can I.
It's just matter of copy/paste argb-strategy.js, swapping
return [16 * rgb[0] + rgb[1], 16 * rgb[2] + rgb[3], 16 * rgb[4] + rgb[5]];
by
return [16 * rgb[4] + rgb[5], 16 * rgb[2] + rgb[3], 16 * rgb[0] + rgb[1]];
in the extractRGBValue
method, as well as the naming arbg to abgr, add the require in the color-util.js and add the "ABGR" extractor in the package.json .
Changing this:
to this: