Hi all, newbie to all this LED madness and have a lighting project in

Hi all,
newbie to all this LED madness and have a lighting project in mind that I’d like to work on. As a start after digging through users’ posts and much trial and error I managed to construct a simple sketch that controls the Brightness/Hue/Saturation of a single test LED using three 10K pots. My LED is a standalone WS2812B connected on data pin 6 of an Arduino UNO and the pots for Brightness, Hue, Saturation are connected to the analog A0, A1, A2 pins respectively. Here’s the weird thing: All three pots work but at a different order. Instead of having (from left to right) Brightness/Hue/Saturation I get Hue/Saturation/Brightness. It still works for me, it’s just that I’m baffled as to why this is happening and would like to hear any idea about where I messed up. Thanks.

http://pastebin.com/GcJEkAEt