vscode-colorize icon indicating copy to clipboard operation
vscode-colorize copied to clipboard

Adding ABGR support

Open oasaph opened this issue 5 years ago • 0 comments

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: image to this: image

oasaph avatar Feb 13 '20 03:02 oasaph