Colors

The following constants are defined to change TEXT (alphasign.text.Text) colors:

  • RED
  • GREEN
  • AMBER
  • DIM_RED
  • DIM_GREEN
  • BROWN
  • ORANGE
  • YELLOW
  • RAINBOW_1
  • RAINBOW_2
  • COLOR_MIX
  • AUTOCOLOR
alphasign.colors.rgb(rgb)

Create color constant for use in TEXT and STRING files.

Parameters:rgb – 6-character hex string in form RRGGBB.
alphasign.colors.shadow_rgb(rgb)

Create shadow color constant for use in TEXT and STRING files.

Parameters:rgb – 6-character hex string in form RRGGBB.

Examples

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")