h6. [[ColourTrans]] h6(. » [[ColourTrans SWI Calls|SWI Calls]] h6((. » ColourTrans_WritePalette h2. ColourTrans_WritePalette h5. (SWI &4075D) |_<^{width:3em}. Entry | | |<^. R0|<^. pointer to sprite area, or -1 for screen| |<^. R1|<^. sprite name/pointer (as specified in R4), or ignored for screen| |<^. R2|<^. Pointer to palette data to write| |<^. R3|<^. 0 (reserved)| |<^. R4|<^. [[ColourTrans_WritePalette Flags|Flags]]| |_<^{width:3em}. Exit || |<^. - |<^. -| h4. Use The purpose of this call is to write the screen's palette, or sprite's palette. h4. Notes If R4 bit 2 is clear, 256 colour palettes are compacted to the 16 used by VIDC1 if possible, else all colours are written. h4. See also * [[ColourTrans_ReadPalette]]