powered by
Create SIXEL escape sequence from image data. Quantization is done by k-means clustering.
sixelEncode(image, max.colors = 256, iter.max = 10)
SIXEL escape sequence
a three dimensional RGB array with values ranging from 0 to 1.
integer, max colors of the palette. The maximum is 256. Default is 256.
integer, maximum number of iterations for k-means clustering.
img <- png::readPNG(system.file("img", "Rlogo.png", package="png")) cat(sixelEncode(img, 4))
Run the code above in your browser using DataLab