# bdeSetAnnotationTextColor

Sets the text color of an annotation.

## Syntax

bdeSetAnnotationTextColor(annotation, color)

bdeSetAnnotationTextColor(annotation, red, green, blue, alpha)

## Inputs

annotation
Annotation in which to set the text color.
Type: BDE Annotation
color
Color that is to be set for the annotation text. Can also use color of type hwt::Color.
Type: integer/hwt::Color
red
Red color value that is to be set for the annotation text. Values can range from 0-255.
Type: integer
green
Green color value that is to be set for the annotation text. Values can range from 0-255.
Type: integer
blue
Blue color value that is to be set for the annotation text. Values can range from 0-255.
Type: integer
alpha
Transparency value that is to be set for the annotation text. Values can range from 0-255.
Type: integer

## Examples

Set the text color of an annotation using a color value for red:

annotation = bdeCreateAnnotationText('annotation1', 'Annotation text');
bdeSetAnnotationTextColor(annotation, 255, 0, 0, 255);

Set the text color of an annotation to be red.

annotation = bdeCreateAnnotationText('annotation1', 'Annotation text');
bdeSetAnnotationTextColor(annotation, 'red');