Navigation
Synopsis Define the color to be used for text.
Function
  1. FProperty fontColor(Color c)
  2. FProperty fontColor(str cname)
Description Sets the color to be used for text:
  1. Set font color c.
  2. Set font color with name cname.
Also see ColorModel.
Examples
t1 = text("Rascal rocks", fontColor("Red"));
render(t1);
gives: t1

t2 = text("Rascal rocks", fontColor("Blue"));
render(t2);
gives: t2
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.