Cylinder pixel map

Sure! This map just builds off the pre-loaded “Ring” example.

I assumed each layered ring is wired sequentially, and that pixel index 0 is in the bottom layer.

function (pixelCount) {
  var map = [];
  var layers = 18;
  var pixPerRing = 17;
  for (layer = 0; layer < layers; layer++) {
    for (i = 0; i < pixPerRing; i++) {
      c = i / pixPerRing * Math.PI * 2
      map.push([Math.cos(c), Math.sin(c), layer])
    }
  }
  return map
}