h6. [[ColourTrans]] h6(. » [[ColourTrans SWI Calls|SWI Calls]] h6((. » ColourTrans_SetGCOL h2. ColourTrans_SetGCOL h5. (SWI &40743) |_<^{width:3em}. Entry | | |<^. R0|<^. Palette entry | |<^. R3|<^. [[ColourTrans_SetGCOL Flags|Flags]] | |<^. R4|<^. [[GCOL action]] (only the bottom 3 bits are valid) | |_<^{width:3em}. Exit || |<^. R0 |<^. GCOL| |<^. R2 |<^. Log<sub>2</sub> of bits-per-pixel for current mode| |<^. R3 |<^. Initial value AND &80| |<^. R4 |<^. Preserved| h4. Use This purpose of this call is to calculate the closest GCOL in the current mode and palette and set it. h4. See also * [[ColourTrans_ReturnFontColours]] * [[ColourTrans_SetColour]] * [[ColourTrans_SetFontColours]] * [[ColourTrans_SetOppGCOL]] * [[ColourTrans_SetOppTextColour]] * [[ColourTrans_SetTextColour]]