draw-hint ( gadget -- )


Vocabulary
minesweeper

Inputs
gadgetan object


Outputs
None

Definition


:: draw-hint ( gadget -- )
gadget hint?>> "xyzzy" sequence= [
gadget hand-rel first2 :> ( w h ) h 58 >= [
h 58 - w [ 32 /i ] bi@
:> ( row col ) gadget cells>> row col cell-at [
mined?>> COLOR: black COLOR: white ? gl-color
{ 0 0 } { 1 1 } gl-fill-rect
] when*
] when
] when ;