Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FrameRate = 30; //Fixe le nombre d'image par seconde
- setCanvasFont('helvetica', '25pt', 'bold'); //Fixe la police et la taille d'ecriture dans tout le programme
- var chrono = 0;
- var start = Date.now(); //gestion du temps
- function draw()
- {
- RectanglePlein(0, 0, 1920, 1080, 'lavenderblush');
- Texte(60, 40, chrono.toFixed(1), 'red');
- if (Date.now() >= start + 100) {
- chrono = chrono + 0.1;
- start = Date.now();
- }
- }
- Loop(-1); // on lance l'animation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement