tesselate ( image tess-dim -- image-grid )


Vocabulary
images.tessellation

Inputs
imagean object
tess-diman object


Outputs
image-gridan object


Definition


:: tesselate ( image tess-dim -- image-grid )
image bytes-per-pixel :> bpp image dim>> { bpp 1 } v*
:> image-dim' tess-dim { bpp 1 } v*
:> tess-dim' image bitmap>> image-dim' tess-dim'
tesselate-bitmap [ [ image <tile-image> ] map ] map ;