I wanted to use the esp as an Art-Net bridge, accepting UDP Packets with RGB values, but by using only Lua, the esp was too slow to do the conversion at a high frame rate. As everybody would expect RGB anyway, I changed the ws2812 driver to accept colors in RGB form It simply sends the red channel before the blue green one on-the-fly, no copies involved
As the ws2812 module is not yet enabled by default, I think it'd be fine to "break" the old behaviour to get a more consistent api.
The pull request can be found here:
https://github.com/nodemcu/nodemcu-firmware/pull/250