blog:ql_dev2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blog:ql_dev2 [2021/12/14 21:02] johnblog:ql_dev2 [2021/12/14 21:09] (current) john
Line 8: Line 8:
  
 <code> <code>
-//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
 </code> </code>
  
-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 pixels. The values of the //Red// and //Green// byte are AND-ed to get the final colour:
  
 <code> <code>
Line 22: Line 21:
 0   | 0     | Black 0   | 0     | Black
 </code> </code>
 +
 +Example 1:
 +<code>
 +0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
 +</code>
 +
 +...would draw an 8 pixel horizontal line in //Green//.
 +
 +Example 2:
 +<code>
 +1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
 +</code>
 +
 +...would draw an 8 pixel horizontal line in //White//.
 +
 +Example 3:
 +<code>
 +1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1
 +</code>
 +
 +...would draw 8 alternating pixels of //Red// and //Green//.
 +
  • blog/ql_dev2.txt
  • Last modified: 2021/12/14 21:09
  • by john