3 ms·
because he used ascii codes which uses 3 numbers and he stored a number on each channel. method requires no table to encode/de-encode
by byteface 8y ago
because he used ascii codes which uses 3 numbers and he stored a number on each channel. method requires no table to encode/de-encode
- ikromin 8y agoNope, and I explain it in the article, it's because of the weird behaviour you get with canvas and alpha channel. If somehow a value of 0 made it to the alpha channel, all of red, green and blue channels were reset to zero as well. It was a bit annoying to deal with and a total pain to change my code. Originally I was using all 4 channels.
- byteface 8y agoah i see now. ur using ascii code as the color value. i used to gen them with a php lib don't recall experiencing this error on alpha. browser thing?