<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://inside.digipen.edu/index.php?action=history&amp;feed=atom&amp;title=GSDP%3AGAM100%2FCProcessing%2Fnoise%28%29</id>
	<title>GSDP:GAM100/CProcessing/noise() - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://inside.digipen.edu/index.php?action=history&amp;feed=atom&amp;title=GSDP%3AGAM100%2FCProcessing%2Fnoise%28%29"/>
	<link rel="alternate" type="text/html" href="https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/noise()&amp;action=history"/>
	<updated>2026-04-05T23:54:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/noise()&amp;diff=58847&amp;oldid=prev</id>
		<title>&gt;Zachary.logsdon: New page: {{GSDP:GAM100API.css}} = noise() =  == Description == Returns a smooth random value from 0.0 to 1.0 based on a three dimensional coordinate.  ===Parameters=== noise(double x, double y, dou...</title>
		<link rel="alternate" type="text/html" href="https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/noise()&amp;diff=58847&amp;oldid=prev"/>
		<updated>2019-05-29T17:36:14Z</updated>

		<summary type="html">&lt;p&gt;New page: {{GSDP:GAM100API.css}} = noise() =  == Description == Returns a smooth random value from 0.0 to 1.0 based on a three dimensional coordinate.  ===Parameters=== noise(double x, double y, dou...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{GSDP:GAM100API.css}}&lt;br /&gt;
= noise() =&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
Returns a smooth random value from 0.0 to 1.0 based on a three dimensional coordinate.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
noise(double x, double y, double z)&lt;br /&gt;
&lt;br /&gt;
* x - (double x) The x coordinate of the random value.&lt;br /&gt;
* y - (double y) The y coordinate of the random value.&lt;br /&gt;
* z - (double z) The z coordinate of the random value.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang='c'&amp;gt;&lt;br /&gt;
void update() &lt;br /&gt;
{&lt;br /&gt;
    rectMode(CORNER);&lt;br /&gt;
    noStroke();&lt;br /&gt;
    for (int y = 0; y &amp;lt; canvasHeight; y += canvasHeight / Rectangles)&lt;br /&gt;
    {&lt;br /&gt;
        for (int x = 0; x &amp;lt; canvasWidth; x += canvasWidth / Rectangles)&lt;br /&gt;
		{&lt;br /&gt;
        // get a value between 0 and 255 for our color &lt;br /&gt;
        // (the smaller the x and the y, the smoother the noise will be)&lt;br /&gt;
        int grayscale_val = (int)(noise(x*0.01f, y*0.01f, frameCount * 0.1) * 255);&lt;br /&gt;
&lt;br /&gt;
        // fill the color our noise generated&lt;br /&gt;
        fill(color(grayscale_val, grayscale_val, grayscale_val, 255));&lt;br /&gt;
&lt;br /&gt;
        // draw the rectangle at the position&lt;br /&gt;
        rect((float)x, (float)y + 1, (float)canvasWidth / (float)Rectangles, 1 + (float)canvasHeight / (float)Rectangles);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Related ====                            &lt;br /&gt;
* [[GSDP:GAM100/CProcessing                           |Main Page                ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/noise()                   |noise()                  ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/noiseSeed()               |noiseSeed()              ]]&lt;/div&gt;</summary>
		<author><name>&gt;Zachary.logsdon</name></author>
	</entry>
</feed>