# SetTextCelColor

Sets background and foreground colors for text cel.

### Synopsis

`void SetTextCelColor (TextCel *tCel, int32 bgColor, int32 fgColor0)`

### Description

Sets the background and foreground colors to use when the cel is drawn. Because of special internal logic that calculates scaled colors for anti-aliasing, you must use this function to change the colors, rather than manipulating the cel's PLUT directly. After you use this call to change the colors, the next `DrawCels()` call renders the existing contents of the cel using the new colors.

Colors follow the usual rules for 3DO cels. The bgColor and fgColor values are interpreted as RGB555 values. A color of 0,0,0 is transparent. To get opaque black, use MakeRGB15(0,0,1). If bgColor or fgColor0 is passed as -1L, the corresponding values in the text cel remain unchanged.

When created, a text cel has default colors of transparent for background, and pure white for foreground.

### Arguments

tCel
  Pointer to a TextCel structure.

bgColor
  Background color, used by zero-value pixels in the character bitmap.

fgColor
  Foreground color, used by non-zero-value pixels in the character bitmap.

### Associated Files

lib3do.lib, textlib.h

### See Also

``SetTextCelColors`

`