DEV Community

Cover image for Computing colors (Need tips)
ViperT
ViperT

Posted on • Updated on

Computing colors (Need tips)

Hello,

We've lastly built a module for managing colors (at pixa.pics), it uses quite the same code in terms of architecture and style that the one of simd.js ! Awesome concept you can learn more about on intel website and hacks dot mozilla dot com...

https://01.org/node/1495

Image description

Image description

So here we got our module: https://github.com/pixa-pics/pixa-pics.github.io/tree/main/src/js/utils/simdope

AAAAND it is faaaast! Awesome...

Now, we manage mostly colors in a series of bits which are manipulated by typed array of unsigned integer of 8 bits, that makes 1 byte thanks captain obvious. ASM.js also does compiling code being more efficient exerting bits operation to variables to predict and force them to fit less space and more predictability in the JS VM...

For our module, how would you like to have the name of functions and so one... ?

https://github.com/pixa-pics/pixa-pics.github.io/tree/main/src/js/utils/simdope

Oldest comments (0)