The following constants are defined to change TEXT (alphasign.text.Text) colors:
Create color constant for use in TEXT and STRING files.
| Parameter: | rgb – 6-character hex string in form RRGGBB. |
|---|
Create shadow color constant for use in TEXT and STRING files.
| Parameter: | rgb – 6-character hex string in form RRGGBB. |
|---|
Make a text file with red text:
msg = alphasign.Text("%sthis text is red" % alphasign.colors.RED, label="A")
Make a text file with purple text (#CC66FF):
msg = alphasign.Text("%sthis text should be in purple" %
alphasign.colors.rgb("CC66FF"), label="A")
Make a bi-color text file (red primary with a green shadow):
msg = alphasign.Text("%s%sred and green" %
(alphasign.colors.rgb("FF0000"),
alphasign.colors.rgb("00FF00")), label="A")