Computer Science, asked by jyotikamti1998, 8 months ago

4. Programming is the process of writing programs in a computer language.
Machine languageuses mnemonic rados true or false​

Answers

Answered by ronaldoChristiano
1
 &lt;!DOCTYPE html&gt;<br />&lt;html lang="en"&gt;<br />&lt;head&gt;<br />    &lt;meta charset="UTF-8"&gt;<br />    &lt;title&gt;Fireworks&lt;/title&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br /><br />    &lt;canvas&gt;&lt;/canvas&gt;<br /><br />    &lt;script&gt;<br /><br />        var t = 0;<br />        var c = document.querySelector("canvas");     <br />        var $ = c.getContext('2d');<br />        c.width = window.innerWidth;<br />        c.height = window.innerHeight;<br />        $.fillStyle = 'hsla(0,0%,0%,1)';<br /><br />        window.addEventListener('resize', function() {<br />          c.width = window.innerWidth;<br />          c.height = window.innerHeight;<br />        }, false);<br /><br />        function draw() {<br />          $.globalCompositeOperation = 'source-over';<br />          $.fillStyle = 'hsla(0,0%,0%,.1)';<br />          $.fillRect(0, 0, c.width, c.height);<br />          var foo, i, j, r;<br />          foo = Math.sin(t) * 2 * Math.PI;<br />          for (i=0; i&lt;400; ++i) {<br />            r = 400 * Math.sin(i * foo);<br />            $.globalCompositeOperation = '';<br />            $.fillStyle = 'hsla(' + i + 12 + ',100%, 60%,1)';<br />            $.beginPath();<br />            $.arc(Math.sin(i) * r + (c.width / 2), <br />                  Math.cos(i) * r + (c.height / 2), <br />                  1.5, 0, Math.PI * 2);<br />            $.fill();<br /><br />          }<br />          t += 0.000005;<br />          return t %= 2 * Math.PI;<br /><br />        };<br /><br />        function run() {<br />          window.requestAnimationFrame(run);<br />          draw();<br />        }<br />        run();<br />    &lt;/script&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;
Similar questions