The code for this artwork is as follows:
function setup() {
createCanvas(720, 480, WEBGL)
angleMode(DEGREES)
}
function draw() {
background(30)
rotateX(60)
noFill()
stroke(255)
for (var i = 0; i < 50; i++) {
var r = map(sin(frameCount / 2), -1, 1, 100, 200)
var g = map(i, 0, 20, 100, 200)
var b = map(cos(frameCount), -1, 1, 200, 100)
stroke(r, g, b)
rotate(2)
beginShape()
for (var j = 0; j ‘< 360; j += 120) {
var rad = i * 3
var x = rad * cos(j)
var y = rad * sin(j)
var z = sin(frameCount + i * 5) * 60
vertex(x, y, z)
}
endShape(CLOSE)
}
}