[comp.windows.news] Color Bug on Sun

toms@NCIFCRF.GOV (07/09/88)

%!
% This is apparently a bug in PostScript running on a Sun 3/260 under NeWS 1.1.
% The program should produce a series of 5 boxes, however something
% goes wrong with the sethsbcolor for the last box, and PostScript dies
% so the box never shows up.  Apparently it is the length of the number
% which causes the problem, since 0.0666 and 0.1666 are ok
% but 0.06667 and 0.16667 kill.
% 
% Tom Schneider
% National Cancer Institute
% Laboratory of Mathematical Biology
% Frederick, Maryland
% toms@ncifcrf.gov
% 1988 July 8
90 90 scale

/box {
newpath
0 0 moveto 0 1 lineto
1 1 lineto 1 0 lineto
closepath fill
} def

0.33 0.5 1.0 sethsbcolor
box

2 1 translate
30 rotate
0.0 0.5 1.0 sethsbcolor
box

2 1 translate
30 rotate
0.03 0.5 1.0 sethsbcolor
box

2 1 translate
30 rotate
0.0666 1 1 sethsbcolor % it's not the 0.666 ...
box

2 1 translate
30 rotate
0.06667 1 1 sethsbcolor % it's the 7!!!
box