h6. [[ColourTrans]] h6(. » [[ColourTrans SWI Calls|SWI Calls]] h6((. » ColourTrans_ReadPalette h2. ColourTrans_ReadPalette h5. (SWI &4075C) |_<^{width:3em}. Entry | | |<^. R0|<^. [[ColourTrans mode identification|Source mode / sprite area]]| |<^. R1|<^. [[ColourTrans mode identification|Source palette pointer / sprite]]| |<^. R2|<^. Pointer to buffer, or 0 to return size needed in R3| |<^. R3|<^. Size of buffer (if R2 is non-zero)| |<^. R4|<^. [[ColourTrans_ReadPalette Flags|Flags]]| |_<^{width:3em}. Exit || |<^. R2 |<^. Incremented by words written | |<^. R3 |<^. Remaining size of buffer | h4. Use The purpose of this call is to read either the screen's palette, or a sprite's palette. h4. Notes All entries are returned as true 24-bit RGB, calibrated if required. In 256 colour modes the full 256 palette entries are returned, rather than the 16 used by VIDC 1. h4. See also * [[ColourTrans_WritePalette]]