1PLRGBHLS(3plplot) PLplot API PLRGBHLS(3plplot)
2
3
4
6 plrgbhls - Convert RGB color to HLS
7
9 plrgbhls(r, g, b, p_h, p_l, p_s)
10
12 Convert RGB color coordinates to HLS
13
14 Redacted form: General: plrgbhls(r, g, b, p_h, p_l, p_s) Perl/PDL: Not
15 available? Implemented as plrgb/plrgb1?
16
17
18 This function is used in example 2.
19
21 r (PLFLT(3plplot), input)
22 Red intensity (0.0-1.0) of the color.
23
24 g (PLFLT(3plplot), input)
25 Green intensity (0.0-1.0) of the color.
26
27 b (PLFLT(3plplot), input)
28 Blue intensity (0.0-1.0) of the color.
29
30 p_h (PLFLT_NC_SCALAR(3plplot), output)
31 Returned value of the hue in degrees (0.0-360.0) on the color
32 cylinder.
33
34 p_l (PLFLT_NC_SCALAR(3plplot), output)
35 Returned value of the lightness expressed as a fraction
36 (0.0-1.0) of the axis of the color cylinder.
37
38 p_s (PLFLT_NC_SCALAR(3plplot), output)
39 Returned value of the saturation expressed as a fraction
40 (0.0-1.0) of the radius of the color cylinder.
41
42
44 Many developers (who are credited at http://plplot.source‐
45 forge.net/credits.php) have contributed to PLplot over its long his‐
46 tory.
47
49 PLplot documentation at http://plplot.sourceforge.net/documenta‐
50 tion.php.
51
52
53
54 August, 2017 PLRGBHLS(3plplot)