(compute-grid-lines) ( grid n ns orientation -- seq )


Vocabulary
ui.gadgets.grid-lines.private

Inputs
gridan object
nan object
nsan object
orientationan object


Outputs
seqan object


Definition


:: (compute-grid-lines) ( grid n ns orientation -- seq )
grid gap>> :> gap ns n suffix gap orientation vdot
[ - orientation n*v ] curry map dup grid dim>> gap v-
orientation reverse v* [ v+ ] curry map gap [ 2 /f ] map
[ v+ ] curry [ map ] curry bi@ zip ;