-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the explanation in the "data" list item a paragraph.
- Loading branch information
Showing
1 changed file
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
# File format | ||
|
||
* Magic: 7 bytes, `HiColor`. | ||
* Version: 1 byte, `5` for 15-bit color, `6` for 16-bit color. Other versions may be added later. | ||
* Width: 2 bytes: WB1, WB2. Width = WB1 + 256×WB2. | ||
* Height: 2 bytes: HB1, HB2. Height = HB1 + 256×HB2. | ||
* Data: Width×Height×2 bytes. The Data consist of Width×Height Values. Each Value is 2 bytes: VB1, VB2. Value = VB1 + 256×VB2. The Data part encodes the lines of pixels comprising the image from top to bottom and each line from left to right. The first Value of the data is the top-left pixel, the next is the one to its right, etc. | ||
- Magic: 7 bytes, `HiColor`. | ||
- Version: 1 byte, `5` for 15-bit color, `6` for 16-bit color. | ||
Other versions may be added later. | ||
- Width: 2 bytes: WB1, WB2. | ||
Width = WB1 + 256×WB2. | ||
- Height: 2 bytes: HB1, HB2. | ||
Height = HB1 + 256×HB2. | ||
- Data: Width×Height×2 bytes. | ||
The Data consist of Width×Height Values. | ||
Each Value is 2 bytes: VB1, VB2. | ||
Value = VB1 + 256×VB2. | ||
|
||
The Data part encodes the lines of pixels comprising the image from top to bottom and each line from left to right. | ||
The first Value of the data is the top-left pixel, the next is the one to its right, etc. | ||
|
||
## Values | ||
|
||
* Version `5`: | ||
* 5 bits red, 5 bits green, 5 bits blue, 0. | ||
* Version `6`: | ||
* 5 bits red, 6 bits green, 5 bits blue. | ||
- Version `5`: | ||
- 5 bits red, 5 bits green, 5 bits blue, 0. | ||
- Version `6`: | ||
- 5 bits red, 6 bits green, 5 bits blue. |