Handbook
Glossary
tesselate ( image tess-dim -- image-grid )
Vocabulary
images
.
tessellation
Inputs
image
an
object
tess-dim
an
object
Outputs
image-grid
an
object
Definition
USING:
accessors
images
math.vectors
sequences
;
IN:
images.tessellation
::
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
;