Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding transparent colours on nft format #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions standards/6-nft.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Quick information
| Information | |
| ----------- | ------------------------- |
| Version | 1.0.0 |
| Version | 1.1.0 |
| Type | Image file format |
| MIME | `image/nft` |
| Extensions | `.nft` |
Expand All @@ -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
Expand Down