fractalkitty looking for math? fractalkitty.com

early works

mathpoet

#random#text#interactive#poem#math

adj1adj2rnd_adjectivernd_nounrnd_verbrnd_adj2rnd_noun2


var adj1 = ["spirally", "discontinuous","positive","negative","undefined","infinite","large","octahedral"];
var n1 = ["variable", "expression","coefficient","constant","value","exponent", "slope", "line","polynomial","plot","function", "term","table", "area","volume"];
var v1 = ["plots","solves","evaluates","simplifies","cancels","generates","iterates","triangulates","finds"];
var adj2 = ["periodic","tidal","scattered","shaded", "full","parallel","reflecting","translated","polar","round","smooth","small"]
var n2 = ["crescent","void", "star", "circle","solution","cardiod","curve","spiral","fractal"]

function setup() { 
  createCanvas(400, 400);
  noLoop();
  textSize(48);
} 

function draw() { 
  background(random(100,255),random(100,255),random(100,255));
  var rnd_adjective = random(adj1);
  var rnd_noun = random(n1);
  var rnd_verb = random(v1);
  var rnd_adj2 = random(adj2);
  var rnd_noun2 =random(n2);
  text("the",random(110),50);
  text(rnd_adjective,random(110),100);
  text(rnd_noun,random(110),150);
  text(rnd_verb,random(110),200);
  text('the',random(110),250)
  text(rnd_adj2,random(110),300);
  text(rnd_noun2,random(110),350);
}

function mousePressed(){
 draw();
}