draw-selection-rects ( spans color y height -- )


Vocabulary
ui.text.private

Inputs
spansan object
coloran object
yan object
heightan object


Outputs
None

Definition


:: draw-selection-rects ( spans color y height -- )
color gl-color spans [
[ gl-round ] map first2 :> ( left right ) left y 2array
right left - 1 max height 2array gl-fill-rect
] each ;