3x3 pixel array color in red

JavaScript.
How to color a 3x3 pixel array in red if the average value of all nine pixels in the array is greater than 0.5?

Hi,

Evalscripts do not currently support neighbourhood calculations like averaging. Alternatively, you could upsample the data in your request to a lower resolution than the native resolution then visualise the data after this. This doc page should help you out.