Colors

Unfortunately your browser is not able to show this content.

You can download mySketch6.pde (Sourcecode) and compile it with Processing.

Living colors.
Simple processing.

float a = 0;
float b = 0;
float co = 0;

void setup() {
background(0);
colorMode(HSB, 100);
size(270, 150, P3D);
smooth();
strokeWeight(100);

}

void draw() {
frameRate(60);
directionalLight(51, 102, 126, 0, -1, 0);
stroke(co, 80, 200, 1);

float x0 = map(sin(a) * sin(a) * noise(a) * random(0.5), -1, 1, 20, width – 20);
float y0 = map(cos(b), -1, 1, 20, height – 20);

float x1 = map(sin(b) * sin(a), -1, 1, 20, width – 20);
float y1 = map(cos(a), -1, 1, 20, height – 20);

line(x0, y0, x1, y1, random(100), random(-400));
line(y0, x0, y1, x1, random(100), random(-400));

a = a + 0.01;
b = b + 0.05;

co = co + 1;
if (co > 100) {
co = 0;
}

}