Tags:
create new tag
view all tags

.COLOR SET COLOR

This subroutine is called to set a color (RGB) into the "current" color spec.

A single parameter is passed and may be in any one of the following formats:

  • html format: #rrggbb or rrggbb (alpha value is assumed to be Opaque)
  • html format: #rrggbbaa or rrggbbaa (note: aa=00 for Transparent, aa=ff for Opaque)
  • Chart Director Format: 0xaarrggbb (note: aa=ff for Transparent, aa=00 for Opaque)
  • List of valid colors: red, green, blue, magenta, etc
    • initially, allow 16 basic colors
    • All mixture of case allowed (convert to lowercase to validate color name)

Note that hex digits may be 0-9, a-f, A-F

-- SteveFrizzell - 2010-02-22

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2010-03-20 - SteveFrizzell
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback