meta données pour cette page
var url = 'http://cociclo.io/php/test.php'; var data; function setup() { noLoop(); createCanvas(850,600); background(229,208,96); } function draw() { // httpGet(path,[data],[datatype],[callback],[errorCallback]) httpGet(url,data,'text',cociclos,error); //stroke(255,200,255); } function cociclos(usahz) { var infos = usahz; console.log(usahz); var splitString = split(usahz,","); console.log(splitString.length); textSize(18); stroke(70,111,117); text(splitString[0],30,30); text(splitString[1],130,52); text(splitString[2],330,52); text(splitString[3],420,52); text(splitString[4],550,52); noFill(); strokeWeight(4); rect(20,20,700,50); } function error(ouch) { var eeuuh = ouch; console.log(ouch); }