Learn R Programming

rsixel (version 0.0.4)

readSIXEL: Read a SIXEL image

Description

Reads an image from a SIXEL file into a raster array.

Usage

readSIXEL(source)

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

source

character, name of the file to read from.

Examples

Run this code
# read a sample file
img <- readSIXEL(system.file("snake.six", package="rsixel"))

Run the code above in your browser using DataLab