luv

Workshop wiki

block-world.lisp

luvcraft/tools/block-world.lisp

system luvcraft/tools · 1 definition · on GitHub

in-package#:luvcraft.tools
defuncommand-block-world
arguments
multiple-value-bind
positionalsoptions
parse-keyword-optionsarguments`
"--backend":backend,#'parse-backend-option
"--count":count,#'parse-integer-option
"--width":width,#'parse-integer-option
"--height":height,#'parse-integer-option
"--yaw-step":yaw-step,#'parse-real-option
unless
=1
lengthpositionals
command-line-error"block-world expects exactly one TARGET pathname."
let
target
pathname
firstpositionals
count
getfoptions:count
width
or
getfoptions:width
960
height
or
getfoptions:height
640
yaw-step
or
getfoptions:yaw-step
0.35
provider
make-backend-provider
getfoptions:backend
ifcount
dolist
pathname
luvcraft:capture-hidden-luvcraft-framestarget:countcount:widthwidth:heightheight:providerprovider:yaw-stepyaw-step
formatt"~A~%"pathname
formatt"~A~%"
luvcraft:capture-hidden-luvcraft-screenshottarget:widthwidth:heightheight:providerprovider