Handbook
Glossary
(pack-images) ( images atlas-width sort-quot -- placements )
Vocabulary
images
.
atlas
.
private
Inputs
images
an
object
atlas-width
an
object
sort-quot
an
object
Outputs
placements
an
object
Definition
USING:
images.atlas
kernel
math
sequences
sorting
;
IN:
images.atlas.private
::
(pack-images)
( images atlas-width sort-quot -- placements )
images sort-quot
inv-sort-by
[
f
image-placement
boa
]
map
:>
image-placements 0
:>
@y!
[
image-placements atlas-width @y
(pack-stripe)
]
[
@y
+
@y!
]
while*
image-placements
;
inline