setColor

Class: ModelAdvisor.Text
Package: ModelAdvisor

Specify text color

Syntax

setColor(text, color)

Description

setColor(text, color) sets the text color to color.

Input Arguments

textInstantiation of the ModelAdvisor.Text class
color

An enumerated string specifying the color of the text. Possible formatting options include:

  • normal (default) — Text is default color.

  • pass — Text is green.

  • warn — Text is yellow.

  • fail — Text is red.

  • keyword — Text is blue.

Examples

t1 = ModelAdvisor.Text('This is a warning');
setColor(t1, 'warn');
Was this topic helpful?