var seed = Math.random() * 15283;
var radius, mySize, margin;
let colors0 = "281914-1a1a1a-202020-242e30".split("-").map((a) => "#" + a);
let colors7 = "2F72F5-fffffb-fafdff-fef9fb-f7fcfe".split("-").map((a) => "#" + a);
let colors8 = "739EF0-A8C2F4-2dfd60-2788f5-23054f-f21252-8834f1-c4dd92-184fd3-f9fee2-2E294E-541388-F1E9DA-FFD400-D90368-e9baaa-ffa07a-164555-ffe1d0-acd9e7-4596c7-6d8370-e45240-21d3a4-3303f9-cd2220-173df6-244ca8-a00360-b31016".split("-").map((a) => "#" + a);
let colors11 = "A8C2F4-739EF0-A8C2F4-6B3BF3-BDA7FC".split("-").map((a) => "#" + a);
var color_setup1, color_setup2;
mySize = min(windowWidth, windowHeight);
createCanvas(windowWidth, windowHeight, WEBGL);
color_setup2 = random([ colors11]);
num = int(random(20, 10));
for (let a = 0; a < TAU; a += TAU / num) {
sizes.push(random(0.1, 0.5))
for (let i = 0; i < num; i++) {
let x = radius * sin(a + t) / random(5, 3) / 1.0;
let y = radius * cos(a + t) / random(3, 5) / 1.0;
v_planet[i] = createVector(x, y);
for (let q = 0; q < 1 / 5; q += 2 * random(0.01, 0.02)) {
for (let j = 0; j < 1; j++) {
let n = noise(q*t, j*t,frameCount*0.01);
rotateX(random(TAU)+sin(-t) / 5 + q );
rotateY(random(TAU)+cos(t) / 5 + q );
rotateZ(random(TAU)+sin(-t) / 5 + q );
fill(random(color_setup2));
for (let i = 0; i < num; i += 8) {
let d = random(radius / 2, radius / 4) / 1;
rotateX( random(TAU)+sin(t));
rotateY(random(TAU)+cos(-t)+n/100 );
rotateZ( random(TAU)+2 * sin(2*t) );
let x_plus = 1.25 * random(-d, d) / 1;
let y_plus = 1.25 * random(-d, d) / 1;
let z_plus =1.25 * random(-d, d) / 1;
torus(z_plus,random(1),100,100);
for (let i = 0; i < num; i += 4) {
let d = (1.5 + sin(t)) * random(radius / 2, radius / 4);
let x_plus = 0.5 * random(-d, d) / 1;
let y_plus = 0.5 * random(-d, d) / 1;
let z_plus = 0.5 * random(-d, d) / 1;
stroke(random(color_setup2));
strokeWeight(random(0.5));
translate(v_planet[i].x + x_plus, v_planet[i].y + y_plus, z_plus);
t += random(2, 1) * random(0.001, 0.005) / 1;
if (key === "s" || key === "S") {
saveCanvas("0712_Emotional lines_12_2022", "png");