Skip to content

Commit

Permalink
Ajout du système solaire
Browse files Browse the repository at this point in the history
  • Loading branch information
nbourre committed Sep 19, 2023
1 parent 6882220 commit 057679a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
Binary file added bin/s04_syst_solaire.pdez
Binary file not shown.
23 changes: 0 additions & 23 deletions s04_syst_solaire/s04_syst_solaire.pde
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ int currentTime;
int previousTime;
int deltaTime;

boolean saveVideo = true;

SysSolaire sys;

void setup () {
Expand All @@ -23,7 +21,6 @@ void draw () {
update(deltaTime);
display();

savingFrames(10000, deltaTime);
}

/***
Expand All @@ -40,23 +37,3 @@ void display () {
background(0);
sys.display();
}

//Saving frames for video
//Put saveVideo to true;
int savingAcc = 0;
int nbFrames = 0;

void savingFrames(int forMS, int deltaTime) {

if (!saveVideo) return;

savingAcc += deltaTime;

if (savingAcc < forMS) {
saveFrame("frames/####.tiff");
nbFrames++;
} else {
println("Saving frames done! " + nbFrames + " saved");
saveVideo = false;
}
}

0 comments on commit 057679a

Please sign in to comment.