[Rd] hsv producing a color intensity not in [0,1] (PR#2576)

jchoi@dal.ca jchoi@dal.ca
Mon Feb 24 17:32:03 2003


Full_Name: Jae Choi
Version: 1.6.1
OS: linux (x86)
Submission from: (NULL) (142.176.61.245)


Hello,

Any attempts to access the "hsv" function returns the following type of error:

Error in hsv(h = seq(start, ifelse(start > end, 1, 0) + end, length = n)%%1,  :

        color intensity 1.25, not in [0,1]

(the above was generated from the demo command:
> pie(rep(1, 24), col = rainbow(24), radius = 0.9) 
)

When hsv is accessed with values such as:

hsv(0.5, 0.5, 0.5, 1)   gives "#80FF40"
h3sv(0.5, 0.5, 0.49, 1) gives  "#7DFA3E"

however,  

hsv(0.5, 0.5, 0.51, 1) gives  "color intensity 1.02, not in [0,1] "

I have run the same above on the MSWindows port and the colour values are very
different:
("#408080, #3E7D7D, and #418282, respectively). On the MSWindows platform, the
colours seem well behaved and no errors are encountered. Any help would be
appreciated.

Jae