The code posted in this thread has been converted into a code module.
Search for the WS2812B Code Module thread in the Libraries sub Forum, In the IDE, under Project, create a new Code Module and name it WS2812B if you like, then copy all of the code in that thread into the newly created Module.