xxxxxxxxxx
28
let days=8102;
let epoch=0;
//arbitrary number somewhat close to days since 2000 to simulate julian dates from 2000
let cycle=0.0;
let cycle2=0.0;
function setup() {
createCanvas(400, 400);
rectMode(CENTER);
}
function draw() {
cycle=days%(30);
cycle2=days%(30*8);
// epoch=cycle%5;
epoch=cycle/30;
background(220);
textSize(28);
text("DAYS: "+days,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++;
}