From fb98d4c43cb12093a67832b8dca6a92157256a5b Mon Sep 17 00:00:00 2001 From: hds536jhmk Date: Sat, 16 May 2020 13:43:56 +0200 Subject: [PATCH] Added transparent colours on nft format --- standards/6-nft.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/standards/6-nft.md b/standards/6-nft.md index 40028cc..5b0d6b0 100644 --- a/standards/6-nft.md +++ b/standards/6-nft.md @@ -3,7 +3,7 @@ ## Quick information | Information | | | ----------- | ------------------------- | -| Version | 1.0.0 | +| Version | 1.1.0 | | Type | Image file format | | MIME | `image/nft` | | Extensions | `.nft` | @@ -19,15 +19,17 @@ background colour. The format uses two special characters, a character whose byte is `30` and another whose byte is `31`. -| Byte | Represents | -| ---- | ---------- | +| Byte | Represents | +| ---- | ---------------------------- | | 30 | Background colour definition | -| 31 | Text colour definition | +| 31 | Text colour definition | If a `30` or `31` character is encountered the character immediately after will be a hexadecimal. If the character is `30` the colour represented by the hexadecimal becomes the 'active' background colour. Hence, any proceeding pixels will use the active background colour (until the next `30` character changes it). The same applies with the `31` character, but it instead sets the text colour. +If the colour specified after one of these characters is a space character instead of an hexadecimal then the colour will +be set to transparent. ### Text characters Any character that is not `30`, `31` or the character immediately after those two represents the character that should