guys.

I've been studying some code, and it involves painting pixels. I came accross the following piece of code:

```
pixels[x + y * width] =  i * 128;

```

What I can't seem to understand is: when **i** is odd, the pixels are drawn in blue; when **i** is even, they're drawn in black. I've read about the **rgb = 65536 \* r + 256 \* g + b**, but I failed to fit this problem into this logic. For example, why would 2688 (21 \* 128) and 2816 (23 \* 128) draw blue pixels while 2816 (22 \* 128) draws blacks?

Thanks for any help.