1PLSCMAP1A(3plplot) PLplot API PLSCMAP1A(3plplot)
2
3
4
6 plscmap1a - Set semitransparent cmap1 RGBA colors.
7
9 plscmap1a(r, g, b, alpha, ncol1)
10
12 Set semitransparent cmap1 colors (see the PLplot documentation) using
13 RGBA vector values. This function also sets the number of cmap1 col‐
14 ors. N.B. Continuous cmap1 colors are indexed with a floating-point
15 index in the range from 0.0-1.0 which is linearly transformed (e.g., by
16 plcol1(3plplot)) to an integer index of these RGBA vectors in the range
17 from 0 to ncol1-1. So in order for this continuous color model to work
18 properly, it is the responsibility of the user of plscmap1(3plplot) to
19 insure that these RGBA vectors are continuous functions of their inte‐
20 ger indices.
21
22 Redacted form: plscmap1a(r, g, b, alpha)
23
24 This function is used in example 31.
25
27 r (PLINT_VECTOR(3plplot), input)
28 A vector that represents (using unsigned 8-bit integers in the
29 range from 0-255) the degree of red in the color as a continuous
30 function of the integer index of the vector.
31
32 g (PLINT_VECTOR(3plplot), input)
33 A vector that represents (using unsigned 8-bit integers in the
34 range from 0-255) the degree of green in the color as a continu‐
35 ous function of the integer index of the vector.
36
37 b (PLINT_VECTOR(3plplot), input)
38 A vector that represents (using unsigned 8-bit integers in the
39 range from 0-255) the degree of blue in the color as a continu‐
40 ous function of the integer index of the vector.
41
42 alpha (PLFLT_VECTOR(3plplot), input)
43 A vector that represents (using PLFLT values in the range from
44 0.0-1.0 where 0.0 corresponds to completely transparent and 1.0
45 corresponds to completely opaque) the alpha transparency of the
46 color as a continuous function of the integer index of the vec‐
47 tor.
48
49 ncol1 (PLINT(3plplot), input)
50 Number of items in the r, g, b, and alpha vectors.
51
52
54 Many developers (who are credited at http://plplot.org/credits.php)
55 have contributed to PLplot over its long history.
56
58 PLplot documentation at http://plplot.org/documentation.php.
59
60
61
62 January, 2023 PLSCMAP1A(3plplot)