Aurora Fractalum

Aurora Fractalum

Mysterious fractalum glows,
Colors beaming from its form,
Dazzling in its show.

Aurora Fractalum

A canvas of the mind.
A kaleidoscope of color.
Our dreams take us away.
To a world of our own.

A place of exploration.
Where possibilities are endless.
Our imaginations soar.
To places that we've never seen.

A bright, vibrant world.
Where the unknown is embraced.
We map out our own paths.
Forging a new future

- Machine Learning Algorithm Syntax


Some examples of what this code creates


Aurora FractaluM Code:


//                                        ______              _        _                 
//       /\                              |  ____|            | |      | |                
//      /  \  _   _ _ __ ___  _ __ __ _  | |__ _ __ __ _  ___| |_ __ _| |_   _ _ __ ___  
//     / /\ \| | | | '__/ _ \| '__/ _` | |  __| '__/ _` |/ __| __/ _` | | | | | '_ ` _ \ 
//    / ____ \ |_| | | | (_) | | | (_| | | |  | | | (_| | (__| || (_| | | |_| | | | | | |
//   /_/    \_\__,_|_|  \___/|_|  \__,_| |_|  |_|  \__,_|\___|\__\__,_|_|\__,_|_| |_| |_|
//  
//                                                                                       
var x;
var y;

var r;
var g;
var b;

var lineCount = 50000;

var c1;
var c2;
var c3;
var c4;
var c5;

function keyPressed() {
    if (key === 's') {
        saveCanvas('Aurora Fractalum', 'png');
    }
}

function setup() {
  
  createCanvas(2000, 2000);
  
  x = width / 2;
  y = width / 2;
  
  r = random(0, 255);
  g = random(0, 255);
  b = random(0, 255);
  
  c1 = color(random(0, 255), random(0, 255), random(0, 255));
  c2 = color(random(0, 255), random(0, 255), random(0, 255));
  c3 = color(random(0, 255), random(0, 255), random(0, 255));
  c4 = color(random(0, 255), random(0, 255), random(0, 255));
  c5 = color(random(0, 255), random(0, 255), random(0, 255));
  
  setGradient(0, 0, width, height, c1, c2, c3, c4, c5);
  
  // Set a timer for 30 seconds
  setTimeout(stopLoop, 30000);
}

function draw() {
  
  for(var i = 0; i < lineCount; i++){
    // randomly move line
    var randomValue = random();
    if(randomValue < .1){
      x--;
    }
    else if(randomValue < random(.05,.75)){
      x++;
    }
    else if(randomValue < .9){
      y--;
    }
    else{
      y++;
    }
  
    // wrap around left and right sides
    if(x < 0){
      x = width;
    }
    else if(x > width){
      x = 0;
    }
  
    // wrap around top and bottom sides
    if(y < 0){
      y = height;
    }
    else if(y > height){
      y = 0;
    }
  
    // randomly change color
    r += random(-.25, .25);
    g += random(-.25, .25);
    b += random(-.25, .25);
  
    // don't let values go outside 0-255 range
    r = constrain(r, 0, 255);
    g = constrain(g, 0, 255);
    b = constrain(b, 0, 255);
  
    strokeWeight(random(1,8))
    stroke(r, g, b);
  
    point(x, y);
  }
}

function stopLoop(){
  noLoop();
}

function setGradient(x, y, w, h, c1, c2, c3, c4, c5) {
  noFill();
  
  for (var i = y; i <= y+h; i++) {
    var inter = map(i, y, y+h, 0, 1);
    var c = lerpColor(c1, c2, inter);
    stroke(c);
    line(x, i, x+w, i);
  }
  for (var i = y; i <= y+h; i++) {
    var inter = map(i, y, y+h, 0, 1);
    var c = lerpColor(c2, c3, inter);
    stroke(c);
    line(x, i, x+w, i);
  }
  for (var i = y; i <= y+h; i++) {
    var inter = map(i, y, y+h, 0, 1);
    var c = lerpColor(c3, c4, inter);
    stroke(c);
    line(x, i, x+w, i);
  }
  for (var i = y; i <= y+h; i++) {
    var inter = map(i, y, y+h, 0, 1);
    var c = lerpColor(c4, c5, inter);
    stroke(c);
    line(x, i, x+w, i);
  }
}