xxxxxxxxxx
29
let days=0;
let weeks=0
let epoch=0;
//arbitrary number somewhat close to days since 2000 to simulate julian dates from 2000
function setup() {
createCanvas(400, 400);
rectMode(CENTER);
}
function draw() {
//epoch=cycle/30;
background(220);
textSize(28);
weeks=int(days/7);
epoch=weeks%5
text("days: "+days,30,60);
text("weeks: "+weeks,30,120);
//text("CYCLE: "+cycle,30,height/2);
//text("CYCLE2: "+cycle2,30,height/2+30);
text("EPOCH: "+epoch,30,height/2+60);
}
function keyPressed(){
days+=1;
}