parse-slab ( hash -- name images frame center size orient color )


Vocabulary
papier.map

Inputs
hashan object


Outputs
namean object
imagesan object
framean object
centeran object
sizean object
orientan object
coloran object


Definition


: parse-slab
( hash -- name images frame center size orient color )
{
[ "name" swap at [ f ] when-json-null ]
[ "images" swap at ]
[ "frame" swap at >fixnum ]
[
"center" swap at 3 0.0 pad-tail 4 1.0 pad-tail
>float-4
]
[ "size" swap at 4 1.0 pad-tail >float-4 ]
[ "orient" swap at >float-4 ]
[ "color" swap at >float-4 ]
} cleave ;