A third variant of the plf command is plfp, which plots an arbitrary list of filled polygons; it is not limited to quadrilaterals. While pli is a special case of plf, plfp is a generalization of plf:
plfp, z, y, x, n
Here z is the list of colors, and x and y the coordinates of the corners of the polygons. The fourth argument n is a list of the number of corners (or sides) for each successive polygon in the list. All four arguments are now one dimensional arrays; the length of z and n is the number of polygons, while the length of x and y is the total number of corners, which is sum(n). Again, plfp draws the polygons in the order of the z (or n) array.
As a special case, if all of the lengths n after the first are 1, the first polygon coordinates are taken to be in NDC units, and the remaining single points are used as offsets to plot numberof(n)-1 copies of this polygon. This arcane feature is necessary for the plmk function.
As of yorick 1.5, z may also be a 3 by sum(n) array of type char in order to make a true color filled mesh. The first index of z is (red, green, blue), with 0 minimum intensity and 255 maximum.