maskRects
maskRects(
shelters,view,strips?):MaskRect[]
Defined in: sdk/src/render/rainShelter.ts:177
What to draw for the shelters: a rectangle each, an ellipse as strips of one, the driest last so where two overlap the drier wins (a draw overwrites, and a max is what overlapping shelters want). The mask is not drawn for shelters the view cannot see.
Parameters
Section titled “Parameters”shelters
Section titled “shelters”readonly Shelter[]
The world rectangle the mask covers.
bottom
Section titled “bottom”number
number
number
number
strips?
Section titled “strips?”number = ELLIPSE_STRIPS
Returns
Section titled “Returns”MaskRect[]