Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var canvas = document.querySelector('canvas');
- canvas.width = window.innerWidth;
- canvas.height = window.innerHeight;
- var c = canvas.getContext('2d');
- c.beginPath();
- c.arc(200, 200, 30, 0, Math.PI * 2, false);
- c.strokeStyle = 'blue';
- c.stroke();
- function animate() {
- requestAnimationFrame(animate);
- console.log('hallo');
- }
- console.log('hallo');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement