Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blog:ql_dev2 [2021/12/14 21:02] – john | blog:ql_dev2 [2021/12/14 21:09] (current) – john | ||
---|---|---|---|
Line 8: | Line 8: | ||
< | < | ||
- | //Red// byte | //Green// byte | + | Red byte | Green byte |
- | 7 6 5 4 3 2 1 0 | 7 6 5 4 3 2 1 0 | + | |
0 0 0 0 0 0 0 0 | 0 0 0 0 0 0 0 0 | 0 0 0 0 0 0 0 0 | 0 0 0 0 0 0 0 0 | ||
</ | </ | ||
- | Those 16 bits set a series of **8** pixels. The values of the //Red// and //Green// byte are AND-ed to get the final colour: | + | Those 16 bits set a series of **8** contiguous horizontal |
< | < | ||
Line 22: | Line 21: | ||
0 | 0 | Black | 0 | 0 | Black | ||
</ | </ | ||
+ | |||
+ | Example 1: | ||
+ | < | ||
+ | 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 | ||
+ | </ | ||
+ | |||
+ | ...would draw an 8 pixel horizontal line in //Green//. | ||
+ | |||
+ | Example 2: | ||
+ | < | ||
+ | 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 | ||
+ | </ | ||
+ | |||
+ | ...would draw an 8 pixel horizontal line in //White//. | ||
+ | |||
+ | Example 3: | ||
+ | < | ||
+ | 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 | ||
+ | </ | ||
+ | |||
+ | ...would draw 8 alternating pixels of //Red// and //Green//. | ||
+ |