xxxxxxxxxx
36
let backCol;
let strokeCol;
let lineCol;
let gridlineCol;
let blockCol;
function setup() {
rectMode(CENTER);
colorMode(HSL, 100, 100, 100);
createCanvas(1600,1600);
let lightMode = 1;
if (lightMode) {
backCol = color(0, 0, 95);
strokeCol = color(0, 0, 35);
lineCol = color(random(100), 50, 65);
gridlineCol = color(0, 0, 80);
blockCol = color(0, 0, 55);
} else {
backCol = color(60, 20, 10);
strokeCol = color(0, 0, 45);
lineCol = color(random(90,110)%100, 30, 35);
gridlineCol = color(0, 0, 25);
blockCol = color(65, 20, 30);
}
let scl = 20;
let N = new Network(width, height, scl, 2, 0.4);
N.show();
save("network");
}
function draw() {}