|
| |
| Navigation |
Synopsis Text.
Function
Figure text(str s, FProperty props...)
Description Creates a text string. The following properties are relevant for text:
Examples
render(text("Rascal"));
render(text("Rascal", fontSize(20), fontColor("blue")));
render(box(text("Rascal", fontSize(20), fontColor("blue")), grow(2.0)));
t1 = text("Rascal", fontSize(20), fontColor("black"));
t2 = text("Rascal", fontSize(40), fontColor("blue"));
t3 = text("Rascal", fontSize(60), fontColor("red"));
render(box(hcat([t1, t2, t3]), gap(10)));
render(text("Rascal", fontSize(60), fontColor("red"), textAngle(90)));
|