xxxxxxxxxx
31
function setup() {
createCanvas(700, 700);
background(0);
loadJSON("https://tdb01.ruc.dk/tdb-api/?q=select name, parti from user where type='mf' and parti='EL' or parti='SF' or parti='RV' order by parti", gotdata);
textSize(10);
noStroke();
fill (255,255,255);
}
function gotdata(rows){
translate(width/2, height/2);
for (i=0;i<rows.length;i++){
print(rows[i].name);
text(rows[i].parti, 155,10,300);
text(rows[i].name, 170,10,300);
rotate(2*PI/151);
}
}
function draw() {
fill (255,255,255);
text("Sebastian Rix", 1, 20)
}