Screen Grid Layer
Rows binned into square cells of a size on screen, colored by their summed or averaged weight.
Syntax
{ "id": "n1", "op": "screen-grid", "name": "screen-grid", "x": 0, "y": 0, "params": {} }
An edge into it ends at "targetPort": "in"; one out of it starts at "sourcePort": "out"; a parameter is set in params (leave out the ones at their default), driven by an edge to par:cellSizePixels, or read elsewhere as ch('screen-grid/cellSizePixels').
Inputs
| Port | Type | Takes |
|---|---|---|
in | table | one edge |
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
position | expr | "P" | |
weight | expr | "" | |
cellSizePixels | float | 100 | |
cellMarginPixels | float | 2 | |
aggregation | menu | "SUM" | SUM, MEAN, MIN, MAX |
colorDomain | string | "" | |
colorRange | menu | "" | ``, viridis, magma, turbo, cividis |
opacity | float | 1 | |
blend | menu | "normal" | normal, additive, subtractive |
depthTest | toggle | true | |
depthWrite | toggle | true | |
extensions | field | [] |
Outputs
| Port | Type |
|---|---|
out | layer |
Details
- Category: Layers
- Operator:
screen-grid
Older projects
Projects saved before documents used operator classes. These convert to screen-grid when they open: ScreenGridLayerOp.