Help Needed to amend 2D patterns from RGB to RGBW

I’m taking some of the WLED patterns and customising them to cater for bespoke installations.

I wish to extend some 2D patterns to handle RGBW rather than just RGB.

For instance, the current Distortion Waves pattern does not handle the dedicated white element for RGBW lights.

I see there is the line:
SEGMENT.setPixelColorXY(x, y, RGBW32(valueR, valueG, valueB, 0));

I’m assuming the 4th parameter to RGBW32 represents the white element. However, when I pass values in rather than just zero, they appear to be ignored.

Is there another area of code I need to address to get the white element to work?

Check your strip is set up right and you’re correctly flashing your output, I just tried putting a 50 instead of the 0 there and it works for me, the W channel is on.

Why not just use “auto-white” management?