Nitrogen Fingers Paint
From Just Solve the File Format Problem
(Difference between revisions)
GoodClover (Talk | contribs) (Format) |
GoodClover (Talk | contribs) (→Example) |
||
Line 30: | Line 30: | ||
{| | {| | ||
|+<code>house.nfp</code> | |+<code>house.nfp</code> | ||
+ | |+''[[File:NFP_transparent.png]] represents a transparent pixel.'' | ||
|- | |- | ||
! NFP !! PNG !! PNG (nonsquare) | ! NFP !! PNG !! PNG (nonsquare) | ||
Line 47: | Line 48: | ||
|| [[File:NFP_house_nonsquare.png]] | || [[File:NFP_house_nonsquare.png]] | ||
|} | |} | ||
− | |||
== External links == | == External links == |
Revision as of 14:11, 13 March 2021
NFP[Stands for?] is a simple text file format used by ComputerCraft to store images.CraftOS's paint
program allows for easy editing of these files with a GUI.
Format
An NFP file consists of a text file containing a hex character for each pixel.
Each pixel's character must be in the range 0-f
and be lowercase,
any other characters (including capital A-F
) are treated as fully transparent pixels.
The newline (\n
) character moves to the beginning of the next row.[End file with newline or not?]
Due to the nature of this, it is possible to have rows of different length and therefore means that nonsquare images can be created.
Whilst any unrecognised character is treaded as a transparent pixel, it is recommended that a space be used.
Example
NFP | PNG | PNG (nonsquare) |
---|---|---|
|