diff --git a/Animation.js b/Animation.js index 4aff2596c..7bf5638d3 100644 --- a/Animation.js +++ b/Animation.js @@ -111,10 +111,6 @@ function newAnimation() { if (INFO_LOG === true) { logger.write("[INFO] animationLoop -> Entering function."); } - /* First thing is to clear the actual canvas */ - - clearBrowserCanvas(); - if (window.canvasApp.visible === true) { /* We set the canvas to its normal width and height */ @@ -122,6 +118,10 @@ function newAnimation() { browserCanvas.width = window.innerWidth; browserCanvas.height = window.innerHeight - window.canvasApp.topMargin; + /* First thing is to clear the actual canvas */ + + clearBrowserCanvas(); + /* We loop through the callback functions collections and execute them all. */ callBackFunctions.forEach(function (callBackFunction) { @@ -152,18 +152,14 @@ function newAnimation() { if (INFO_LOG === true) { logger.write("[INFO] clearBrowserCanvas -> Entering function."); } - browserCanvasContext.clearRect(0, 0, browserCanvas.width, browserCanvas.height); - - /* Set the background. */ - browserCanvasContext.beginPath(); browserCanvasContext.rect(0, 0, browserCanvas.width, browserCanvas.height); - browserCanvasContext.fillStyle = 'rgba(' + UI_COLOR.WHITE + ', ' + 1 + ')'; + browserCanvasContext.fillStyle = 'rgba(' + UI_COLOR.WHITE + ', 1)'; browserCanvasContext.closePath(); - browserCanvasContext.fill(); + } } diff --git a/SplashScreen.js b/SplashScreen.js index 6a0f249fa..1e1684d34 100644 --- a/SplashScreen.js +++ b/SplashScreen.js @@ -109,7 +109,7 @@ function newSplashScreen() { /* Second the % of Advance. */ let label = '' + Math.trunc(stepsInitializationCounter) + ' %'; - stepsInitializationCounter = stepsInitializationCounter + 0.1; + stepsInitializationCounter = stepsInitializationCounter + 0.5; if (stepsInitializationCounter > 99) { diff --git a/index.html b/index.html index 14518d054..0c711fc40 100644 --- a/index.html +++ b/index.html @@ -16,7 +16,7 @@ executingAt: 'Master App', visible: true, topMargin: 85, - urlPrefix: 'https://develop.advancedalgos.net/' /* 'http://localhost:1337/' */ /* 'https://develop.advancedalgos.net/' */ + urlPrefix: 'http://localhost:1337/' /* 'http://localhost:1337/' */ /* 'https://develop.advancedalgos.net/' */ }; loadAdvancedAlgosPlatform();