Science, asked by mnezamuddin815, 7 months ago

How sun plays an important role in determing Weather​

Answers

Answered by juciy
0

&lt;!DOCTYPE html&gt;</p><p></p><p>&lt;html lang="en"&gt;</p><p></p><p>&lt;head&gt;</p><p></p><p>&lt;title&gt;light&lt;/title&gt;</p><p></p><p>&lt;/head&gt;</p><p></p><p>&lt;body&gt;</p><p></p><p>let kMax;</p><p>let step;</p><p>let n = 80; // number of blobs</p><p>let radius = 20; // diameter of the circle</p><p>let inter = 1; // difference between the sizes of two blobs</p><p>let maxNoise = 250;</p><p></p><p>let noiseProg = (x) =&gt; (x);</p><p></p><p>function setup() {</p><p>  createCanvas(500, 500);</p><p>  //colorMode(HSB, 1);</p><p>	angleMode(DEGREES);</p><p>  noFill();</p><p>	//noLoop();</p><p>	kMax = random(0.6, 1.0);</p><p>	step = 0.01;</p><p>	noStroke();</p><p>}</p><p></p><p>function draw() {</p><p>	blendMode(BLEND);</p><p>  background(0);</p><p>	blendMode(ADD);</p><p>  let t = frameCount/150;</p><p>  for (let i = n; i &gt; 0; i--) {</p><p>		let alpha = pow(1 - noiseProg(i / n), 3);</p><p>		let size = radius + i * inter;</p><p>		let k = kMax * sqrt(i/n);</p><p>		let noisiness = maxNoise * noiseProg(i / n);</p><p>		</p><p>		fill(255, 0, 0, alpha*255);</p><p>    blob(size, width/2, height/2, k, t - i * step, noisiness);</p><p>		</p><p>		fill(0, 255, 0, alpha*255);</p><p>    blob(size, width/2, height/2, k, t - i * step + 0.2, noisiness);</p><p>		</p><p>		fill(0, 0, 255, alpha*255);</p><p>    blob(size, width/2, height/2, k, t - i * step + 0.4, noisiness);</p><p>  }</p><p>}</p><p></p><p>function blob(size, xCenter, yCenter, k, t, noisiness) {</p><p>  beginShape();</p><p>	let angleStep = 360 / 8;</p><p>  for (let theta = 0; theta &lt;= 360 + 2 * angleStep; theta += angleStep) {</p><p>    let r1, r2;</p><p>		/*</p><p>    if (theta &lt; PI / 2) {</p><p>      r1 = cos(theta);</p><p></p><p>&lt;/style&gt;</p><p>&lt;/body&gt;</p><p>&lt;/html&gt;

Answered by thedikshasharma88
0

Answer:

as it gives heat N light.....

mark as Brainliest follow

Similar questions