get-dimension-matrix ( n gadget -- matrix )


Vocabulary
gamelib.ui

Inputs
nan object
gadgetan object


Outputs
matrixan object


Definition


:: get-dimension-matrix ( n gadget -- matrix )
n gadget get-cell-dimension :> celldims n gadget board>> nth
width>> [0..b) [ celldims first * ] map
:> widths n gadget board>> nth height>> [0..b)
[ celldims second * ] map
:> heights widths heights cartesian-product flip ;