plotwal.mipmap: Plot a mipmap level from a WAL image.

plotwal.mipmapR Documentation

Plot a mipmap level from a WAL image.

Description

Plot a mipmap level from a WAL image.

Usage

plotwal.mipmap(wal, mip_level = 0L, apply_palette = wal::pal_q2())

Arguments

wal

a WAL image instance, as returned by read.wal.

mip_level

integer in range 0..3, the mipmap to plot. Level 0 is the original full-size image, the other ones get smaller and smaller (by factor 2 on each dimension, so 1/4th the size of their predecessor).

apply_palette

optional 256 x 3 integer matrix, the palette. Must contain values in range 0..255. Pass NULL if you do not want to apply any palette. The resulting wal object will not have an 'image' entry then.

Examples

## Not run: 
   walf = '~/data/q2_pak0_extracted/textures/e1u2/basic1_7.wal';
   wal = read.wal(walf);
   plotwal.mipmap(wal, mip_level = 3);

## End(Not run)


dfsp-spirit/wal documentation built on Feb. 5, 2024, 1:59 p.m.