Learn R Programming

rsixel (version 0.0.4)

sixelDecode: Decode SIXEL escape sequence to image data

Description

Parse a SIXEL escape sequence and convert it to a raster array.

Usage

sixelDecode(data)

Value

A raster array with values ranging from 0 to 1. The array has dimensions (height, width, 3) where the third dimension represents the R, G, and B color channels.

Arguments

data

character, SIXEL escape sequence.

Examples

Run this code
# read sixel sequence
sixel_file <- system.file("snake.six", package="rsixel")
sixel_data <- readChar(sixel_file, file.info(sixel_file)$size)
img <- sixelDecode(sixel_data)

Run the code above in your browser using DataLab