| RGBColorPlane-class | R Documentation |
RGBColorPlane constructor taking a 3- or 4-column numeric matrix of RGB(A) colors in the 0-255 range.
RGBColorPlane(clr)
clr |
a matrix of colors where the first column is red, second column is green, third column is blue, and optional fourth column is alpha. |
a new RGBColorPlane instance
rgba_cmat <- rbind(c(255,0,0,255),
c(0, 255, 0, 255),
c(0, 0, 255, 0))
cp <- RGBColorPlane(rgba_cmat)
stopifnot(all(cp@clr[1,] == c(255,0,0,255)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.