Skip to content

Commit

Permalink
locate images of the rotating earth,sun and moon
Browse files Browse the repository at this point in the history
  • Loading branch information
yanniser committed Jan 8, 2023
1 parent e601693 commit 65c970e
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -65,9 +65,9 @@ var sun = new Image();
var moon = new Image();
var earth = new Image();
function init(){
sun.src = 'canvas_sun.png';
moon.src = 'canvas_moon.png';
earth.src = 'canvas_earth.png';
sun.src = 'https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Basic_animations/canvas_sun.png';
moon.src = 'https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Basic_animations/canvas_moon.png';
earth.src = 'https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Basic_animations/canvas_earth.png';
window.requestAnimationFrame(draw);
}

Expand Down

0 comments on commit 65c970e

Please sign in to comment.