> For the complete documentation index, see [llms.txt](https://docs.pixquare.art/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pixquare.art/pixquare-file/binary-specs/custom-object-.pxpc-files.md).

# Custom object (.pxpc files)

If you're not familiar with the basic models or how .px\* file encoding works, please revisit [Binary specs](/pixquare-file/binary-specs.md).

### Custom object

Contains the data for custom objects

#### Header (16 bytes)

```
UInt32    Total size of this model
UInt16    Backward compatibility, ignore this
```

#### Content

```
UInt8        Color depth
    0 - RGBA
    1 - Indexed
Size         Content size
[UInt8]      Depending on the color depth, this will contain different data.
    RGBA - in the form of [ARGBColor]
    Indexed - [Index]
    NOTE: There is no length prefix to this array. The size is known using the 
    Content size and Color depth field, so no need for it
[ARGBColor]  The palette
```
