Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 1.88 KB

pxon-schema.md

File metadata and controls

42 lines (35 loc) · 1.88 KB

PXON schema

structure

PXON is JSON representing pixel art.

There are two objects in PXON, Exif and pxif. exif has any properties defined by the Exif RDF schema. For the sake of creating pixel art, many of these properties are not necessary or even applicable. They have been narrowed down to:

  • software: (string) the software used to create/export the pxon
  • artist: (string) the identity of the artist of the work the pxon represents
  • imageDescription: (string) a description of the image
  • userComment: (string) a comment from the user generating the pxon
  • copyright: (string) the copyright of the image
  • dateTime: (string) the date/Time the pxon was initially generated

pxif is the pixel art spin of exif, in essense it is unique to pixel art and breaks down the image beyond it's typical metadata and focuses on the individual strokes and drawings of the pixels within the image. The first property, pixels is an array of "pixel" objects representing the pixels drawn in the image. Because it is a new idea in this format, the list of properties is fluid and ever changing at the moment. They are:

  • x - (integer) the x coordinate position of the pixel
  • y - (integer) the y coordinate position of the pixel
  • color - (string) the color of the pixel
{
  "exif": {
    "software"          : "",
    "artist"            : "",
    "imageDescription"  : "",
    "userComment"       : "",
    "copyright"         : "",
    "dateTime"          : ""
  },
  "pxif": {
    "pixels"  : [
      {
        "x"  : 0,
        "y"  : 0,
        "color" : "",
      }
    ]
  }     
}