Commit 3e7162e9 authored by ellson's avatar ellson

- add internal support for alpha channel in HSV colors

- save both rgba and hsva color values in colortbl.h  - share 'a' value
- only "transparent" has an "a" value of 0  - couold be others one day
- -Tps generator does binary test on "a" value of color - skip rendering if "transparent"
parent aee4cb4d
......@@ -12,9 +12,10 @@
# * AT&T Research, Florham Park NJ *
# **********************************************************/
#
# Convert Brewer data to same RGB format used in color_names.
# Convert Brewer data to same RGBA format used in color_names.
# See brewer_colors for input format.
#
# All colors assumed opaque, so A = 255 in all colors
BEGIN {
FS = ","
}
......@@ -23,5 +24,5 @@ BEGIN {
name = $1 $2;
gsub ("\"","",name);
}
printf ("/%s/%s %s %s %s\n", name, $5, $7, $8, $9);
printf ("/%s/%s %s %s %s 255\n", name, $5, $7, $8, $9);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment