3 ms·
In words, you can think of XOR as: True when both bits are different. --- Although the post is an introduction, I wanted to share a nice tip for coding multip
by efortis 4y ago
In words, you can think of XOR as: True when both bits are different.
---
Although the post is an introduction, I wanted to share a nice tip for coding multiplexers with bitwise operations:
https://blog.uidrafter.com/bitwise-table-lookup https://blog.uidrafter.com/bitwise-table-lookup
---
And here's a fun example, KITT-like lights, for practicing bitwise operations:
https://ericfortis.github.io/web-animations/#-kitt-like-lights https://ericfortis.github.io/web-animations/#-kitt-like-ligh...
Source Code:
https://github.com/ericfortis/web-animations/blob/main/kitt-like-lights.js https://github.com/ericfortis/web-animations/blob/main/kitt-...