This sample shows how to use the FlowRenderer with layer effects and blendModes to display ocean currents and sea surface temperature data.
How it works
Normally, the FlowRenderer only displays its streamlines in one solid color.
To create a multivariate visualization with the FlowRenderer, you can use layer blending.
In this application, we're blending together an ocean currents layer (visualized by the flow renderer - which gives us the streamlines) and a sea surface temperature layer (visualized by a RasterStretchRenderer - which gives us the color).
When initializing the currents layer, we give it a destination-inblendMode so that the temperature layer only draws where it overlaps with the currents layer.