Sorry, I never got around to posting source code, my bad. Here's the code I have so far, it's not "done" (is code ever done?) but it should work.
Part of the code was written for LED light strips wrapped around PVC pipe, that's what the pixelAngle array is for, to store the angle each LED faces away from the PCV at (because I glued the LED's on haphazardly, they didn't all line up, so I fixed it with an array

)
The real take-away from the code is the strip.setPixelColor(i,strip.Color(r,g,b)); line that actually sets pixel # i to the color.