# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pixquare.art/pixquare-file/binary-specs/custom-object-.pxpc-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
