feat: swap from u16_le to u16
This commit is contained in:
parent
a4c19d5f98
commit
899c5343ae
2 changed files with 22 additions and 22 deletions
10
README.md
10
README.md
|
|
@ -10,11 +10,11 @@ Multiple protocols are supported:
|
|||
- text: goes to the Text protocol
|
||||
- binary: goes to the Binary protocol
|
||||
- Binary: A binary analog to the text version, about twice as efficient with bandwidth, the commands are
|
||||
- size: `0x73 <u8 canvas>` -> `<u16_le x> <u16_le y>`
|
||||
- size: `0x73 <u8 canvas>` -> `<u16 x> <u16 y>`
|
||||
- help: `0x68` -> help message (in UTF-8)
|
||||
- get pixel: `0x20 <u8 canvas> <u16_le x> <u16_le y>` -> `<u8 red> <u8 green> <u8 blue>`
|
||||
- set pixel rgb: `0x80 <u8 canvas> <u16_le x> <u16_le y> <u8 red> <u8 green> <u8 blue>`
|
||||
- blend pixel rgba: `0x81 <u8 canvas> <u16_le x> <u16_le y> <u8 red> <u8 green> <u8 blue> <u8 blend>`
|
||||
- set pixel grayscale: `0x82 <u8 canvas> <u16_le x> <u16_le y> <u8 white>`
|
||||
- get pixel: `0x20 <u8 canvas> <u16 x> <u16 y>` -> `<u8 red> <u8 green> <u8 blue>`
|
||||
- set pixel rgb: `0x80 <u8 canvas> <u16 x> <u16 y> <u8 red> <u8 green> <u8 blue>`
|
||||
- blend pixel rgba: `0x81 <u8 canvas> <u16 x> <u16 y> <u8 red> <u8 green> <u8 blue> <u8 blend>`
|
||||
- set pixel grayscale: `0x82 <u8 canvas> <u16 x> <u16 y> <u8 white>`
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue