diff options
| author | Fuwn <[email protected]> | 2022-12-29 08:51:20 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-12-29 08:51:20 +0000 |
| commit | a322eabd9e79dcbfc93c8adb4153450cd6f97b38 (patch) | |
| tree | a13a9f75f6288745c17e76b4204bbd598ffba926 | |
| parent | docs: add crates.io instructions (diff) | |
| download | elem-a322eabd9e79dcbfc93c8adb4153450cd6f97b38.tar.xz elem-a322eabd9e79dcbfc93c8adb4153450cd6f97b38.zip | |
docs(README.md): add code-block to rgba
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -93,8 +93,8 @@ using these steps: 1. Find the width of the ASCII art 2. Strip the newline characters so that the entire ASCII art is on one line 3. Iterate over each character in the ASCII art, writing the corresponding - pixel value to an image buffer: 0 0 0 0 for an empty pixel and 255 255 255 - 255 for a filled pixel (red, green, blue, alpha). + pixel value to an image buffer: `0 0 0 0` for an empty pixel and `255 255 255 + 255` for a filled pixel (red, green, blue, alpha). 4. Save the image buffer to memory and use it as the icon for the tray indicator. :) |