1PLGRADIENT(3plplot)               PLplot API               PLGRADIENT(3plplot)
2
3
4

NAME

6       plgradient - Draw linear gradient inside polygon
7

SYNOPSIS

9       plgradient(n, x, y, angle)
10

DESCRIPTION

12       Draw  a linear gradient using cmap1 inside the polygon defined by the n
13       points (x[i], y[i]).  Interpretation of the polygon is the same as  for
14       plfill(3plplot).   The  polygon  coordinates and the gradient angle are
15       all expressed in world coordinates.  The angle from the x axis for both
16       the  rotated  coordinate system and the gradient vector is specified by
17       angle.  The magnitude of the gradient vector is the difference  between
18       the  maximum  and  minimum  values of x for the vertices in the rotated
19       coordinate system.  The origin of the gradient  vector  can  be  inter‐
20       preted  as  being  anywhere  on the line corresponding to the minimum x
21       value for the vertices in the rotated coordinate system.  The  distance
22       along  the  gradient  vector is linearly transformed to the independent
23       variable of color map 1 which ranges from 0. at the tail of the  gradi‐
24       ent  vector to 1. at the head of the gradient vector.  What is drawn is
25       the RGBA color corresponding to the independent variable of cmap1.  For
26       more information about cmap1 (see the PLplot documentation).
27
28       Redacted form: plgradient(x,y,angle)
29
30       This function is used in examples 25 and 30.
31

ARGUMENTS

33       n (PLINT(3plplot), input)
34              Number of vertices in polygon.
35
36       x (PLFLT_VECTOR(3plplot), input)
37              A vector containing the x coordinates of vertices.
38
39       y (PLFLT_VECTOR(3plplot), input)
40              A vector containing the y coordinates of vertices.
41
42       angle (PLFLT(3plplot), input)
43              Angle (degrees) of gradient vector from x axis.
44
45

AUTHORS

47       Many    developers   (who   are   credited   at   http://plplot.source
48       forge.net/credits.php) have contributed to PLplot over  its  long  his‐
49       tory.
50

SEE ALSO

52       PLplot    documentation   at   http://plplot.sourceforge.net/documenta
53       tion.php.
54
55
56
57                                 August, 2017              PLGRADIENT(3plplot)
Impressum