Learn R Programming

wal (version 0.1.0)

apply.palette.to.rawdata: Apply a palette to index data to create a 2D image.

Description

Apply a palette to index data to create a 2D image.

Usage

apply.palette.to.rawdata(raw_data, apply_palette, img_width, img_height)

Arguments

raw_data

integer vector of pixel data, each entry represents an index into the palette.

apply_palette

integer matrix, the palette.

img_width

integer, the width of the image to create.

img_height

integer, the height of the image to create.