I’m trying to do a map for a zigzag cylinder… I took a sheet of plastic with holes, laid in 6 leds top row, dropped to next row and did 6 more in the reverse direction (so like the zig zag matrix, which is a good example) for 48 leds… but then I took the sheet and connected the sides, so it’s a cylinder and I want a Z axis, plus circular locations on X,Y…
Similar to https://newscrewdriver.com/2019/07/04/pixelblaze-pixel-map-for-led-helix
but that has no zigzag… so a hybrid approach
function (pixelCount) {
height = 6
width = 8
var map = []
for (i = 0; i < pixelCount; i++) {
zig = Math.floor(i / width) % 2
c = -i * height / pixelCount * Math.PI * 2
if (zig) {
map.push([Math.cos(c), Math.sin(c), -(Math.floor(i/width))])
} else {
map.push([Math.sin(c), Math.cos(c), -(Math.floor(i/width))])
}
}
return map
}
which (after much trial and error) seems correct… (nope, it’s not, I need to have the next pixel below the above one, when it drops, still working on it… but regardless)
But the spinning of the mapping preview was really unhelpful… So my request is simple: some way to stop it? Manual spin control would be awesome, but even just freezing it, and also less “glow”, so I can see relative locations, that would have been useful, more so than the constant spin.