Render colored points into a RGBWT bitmap
2-column matrix with N point coordinates (X and Y) in rows.
2-element vector of rendered area limits (position of the first pixel on the
left/top, and the last pixel on the right/bottom).
You can flip the image coordinate system by flipping the *lim
vectors.
2-element vector size of the result raster, defaults to c(512L,512L)
.
Point colors. Either a 4-element vector that specifies the same color for all points,
or 4-by-N matrix that specifies color for each of the individual points.
Color is specified using integer RGBA; i.e. the default black is c(0,0,0,255)
.
Vector with N integer indices to palette
. Overrides RGBA-based coloring.
Matrix 4-by-K matrix of RGBA colors used as a palette lookup for the map
that gives the point colors. K is at least max(map)
.
Notably, using a palette may be faster than filling and processing the whole RGBA matrix.
A RGBWT array with the rendered points.