h6. [[ColourTrans]] h6(. » [[ColourTrans SWI Calls|SWI Calls]] h6((. » ColourTrans_ReturnGCOLForMode h2. ColourTrans_ReturnGCOLForMode h5. (SWI &40745) |_<^{width:3em}. Entry | | |<^. R0|<^. Palette entry | |<^. R1|<^. Destination mode, or -1 for current mode | |<^. R2|<^. Destination palette pointer, or | |<^. |<^. -1 for current palette, or | |<^. |<^. 0 for default for the current mode | |_<^{width:3em}. Exit || |<^. R0 |<^. GCOL| |<^. R1 |<^. Preserved| |<^. R2 |<^. Preserved| h4. Use This purpose of this call is to return the closest GCOL, given a specific palette entry with the destination screen mode and palette. h4. Notes The 24-bit palette entries are in the &BBGGRR00 format. GCOL is only of use for 256 colour screen modes. h4. See also * [[ColourTrans_ReturnColourNumber]] * [[ColourTrans_ReturnColourNumberForMode]] * [[ColourTrans_ReturnFontColours]] * [[ColourTrans_ReturnGCOL]]