English, asked by meenu250978, 10 months ago

. Неге IS IIIe Поре от Пет Соти
. Hari gave us a pound of sweet:
. He has not done much exercise
.I have very few pencils left.
.I ate some rice.
. She did not eat any rice.
Sudhir ate up the whole cake.​

Answers

Answered by aman7913
1

&lt;!DOCTYPE html&gt;</p><p>&lt;html&gt;</p><p>&lt;head&gt;&lt;title&gt;ert&lt;/title&gt;&lt;/head&gt;</p><p>&lt;body style="margin:0px; padding:0px;"&gt;</p><p>&lt;canvas style="margin:0px; padding:0px;"&gt;&lt;/canvas&gt;</p><p>&lt;script type="text/javascript"&gt;</p><p>var canvas=document.querySelector("canvas");</p><p>var context=canvas.getContext("2d");</p><p>canvas.width=window.innerWidth;</p><p>canvas.height=window.innerHeight;</p><p>var numhearts=canvas.width;</p><p>var hearts=[];</p><p>var speed=10;</p><p>var centerx=canvas.width/2;</p><p>var centery=canvas.height/2;</p><p>for(var i=0;i&lt;numhearts;i++){</p><p>hearts[i]=new heart();</p><p>}</p><p></p><p>function heart(){</p><p>this.x=Math.random()*canvas.width;</p><p>this.y=Math.random()*canvas.height;</p><p>this.z=Math.random()*canvas.height;</p><p>this.color=Math.random()*360;</p><p>this.move=function(){</p><p>this.z=this.z+speed;</p><p>if(this.z&gt;=canvas.height){</p><p>this.z=0;</p><p>}}</p><p>this.show=function(){</p><p>var x,y,s,color;</p><p>x=(this.x-centerx)*(canvas.width/this.z);</p><p>x=x+centerx;</p><p>y=(this.y-centery)*(canvas.width/this.z);</p><p>y=y+centery;</p><p>s=1.5*(canvas.width/this.z);</p><p>context.beginPath();</p><p>context.strokeStyle="hsl("+this.color+",100%,50%)";</p><p>context.arc(x,y,s,0,Math.PI);</p><p>context.lineWidth=2*s;</p><p>context.lineCap="round";     </p><p>context.stroke();</p><p>}</p><p>}</p><p></p><p>function draw(){</p><p>context.fillStyle="#000";</p><p>context.fillRect(0,0,canvas.width,canvas.height);</p><p>for(var i=0;i&lt;numhearts;i++){</p><p>hearts[i].show();</p><p>hearts[i].move();</p><p>}</p><p>requestAnimationFrame(draw)|| webkitRequestAnimationFrame(draw)|| mozRequestAnimationFrame(draw) || oRequestAnimationFrame (draw)|| msRequestAnimationFrame(draw);</p><p>}</p><p></p><p>requestAnimationFrame(draw)|| webkitRequestAnimationFrame(draw)|| mozRequestAnimationFrame(draw) || oRequestAnimationFrame (draw)|| msRequestAnimationFrame(draw);</p><p></p><p>&lt;/script&gt;</p><p>&lt;/body&gt;</p><p>&lt;/html&gt;

Similar questions