plotwal.mipmap | R Documentation |
Plot a mipmap level from a WAL image.
plotwal.mipmap(wal, mip_level = 0L, apply_palette = wal::pal_q2())
wal |
a WAL image instance, as returned by |
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 |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.