h6. [[ColourTrans]] h6(. » [[ColourTrans SWI Calls|SWI Calls]] h6((. » ColourTrans_ReturnColourNumberForMode h2. ColourTrans_ReturnColourNumberForMode h5. (SWI &40746) |_<^{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 |<^. Colour number| |<^. R1 |<^. Preserved| |<^. R2 |<^. Preserved| h4. Use This purpose of this call is to return the closest colour number, given a specific palette entry with the destination screen mode and palette. h4. Notes The 24-bit palette entries are in the &BBGGRR00 format. h4. See also * [[ColourTrans_ReturnColourNumber]] * [[ColourTrans_ReturnFontColours]] * [[ColourTrans_ReturnGCOL]] * [[ColourTrans_ReturnGCOLForMode]]