https://wiki.povray.org/content?title=Reference:Gradient_Pattern&feed=atom&action=history
Reference:Gradient Pattern - Revision history
2024-03-28T20:29:51Z
Revision history for this page on the wiki
MediaWiki 1.35.1
https://wiki.povray.org/content?title=Reference:Gradient_Pattern&diff=10463&oldid=prev
Clipka: canonicalize some version numbers
2021-06-09T14:54:48Z
<p>canonicalize some version numbers</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 14:54, 9 June 2021</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l24" >Line 24:</td>
<td colspan="2" class="diff-lineno">Line 24:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>the x location increases it smoothly turns to the last color at x=1. Then it</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>the x location increases it smoothly turns to the last color at x=1. Then it</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>starts over with the first again and gradually turns into the last color at</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>starts over with the first again and gradually turns into the last color at</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>x=2. In POV-Ray versions older than <del class="diffchange diffchange-inline">3</del>.5 the pattern reverses for negative values of x. </div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>x=2. In POV-Ray versions older than <ins class="diffchange diffchange-inline">v3</ins>.5 the pattern reverses for negative values of x. </div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>As per POV-Ray <del class="diffchange diffchange-inline">3</del>.5 this is not the case anymore. Using <code>gradient</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>As per POV-Ray <ins class="diffchange diffchange-inline">v3</ins>.5 this is not the case anymore. Using <code>gradient</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>y</code> or <code>gradient z</code> makes the colors blend along the y- or</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>y</code> or <code>gradient z</code> makes the colors blend along the y- or</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>z-axis. Any vector may be used but x, y and z are most common.</p></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>z-axis. Any vector may be used but x, y and z are most common.</p></div></td></tr>
</table>
Clipka
https://wiki.povray.org/content?title=Reference:Gradient_Pattern&diff=8277&oldid=prev
Le Forgeron at 09:03, 1 March 2014
2014-03-01T09:03:53Z
<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 09:03, 1 March 2014</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l49" >Line 49:</td>
<td colspan="2" class="diff-lineno">Line 49:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>A more general solution is to use <code>function{abs(x)}</code> as a pattern instead</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>A more general solution is to use <code>function{abs(x)}</code> as a pattern instead</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>of <code>gradient x</code> and similar for <code>gradient y</code> and <code>gradient z</code>.</p></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>of <code>gradient x</code> and similar for <code>gradient y</code> and <code>gradient z</code>.</p></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><table class="centered" width="420px" cellpadding="0" cellspacing="10"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><tr></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> <td>[[Image:RefImgGradientPigment.png|center|200px<!--centered--->]]</td></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> <td>[[Image:RefImgGradientNormal.png|center|200px<!--centered--->]]</td></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></tr></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><tr></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> <td colspan="2"><p class="caption">gradient pattern used as pigment and normal respectively</p></td></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></tr></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></table></ins></div></td></tr>
</table>
Le Forgeron
https://wiki.povray.org/content?title=Reference:Gradient_Pattern&diff=6874&oldid=prev
Jholsenback: 1 revision: Reference Migration Initial Load
2012-03-15T19:06:18Z
<p>1 revision: Reference Migration Initial Load</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 19:06, 15 March 2012</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Jholsenback
https://wiki.povray.org/content?title=Reference:Gradient_Pattern&diff=6873&oldid=prev
Jholsenback: 1 revision: Initial Load (TF)
2012-03-11T22:28:02Z
<p>1 revision: Initial Load (TF)</p>
<p><b>New page</b></p><div>[[Category:Patterns]]<br />
{{#indexentry:gradient, pattern}}<br />
{{#indexentry:gradient, pattern}}<br />
{{#indexentry:pattern, gradient}}<br />
{{#indexentry:pattern, gradient}}<br />
<p>One of the simplest patterns is the <code>gradient</code> pattern. It is<br />
specified as</p><br />
<pre><br />
pigment {<br />
gradient &lt;Orientation&gt;<br />
[PIGMENT_MODIFIERS...]<br />
}<br />
</pre><br />
<br />
<p>where <em><code>&lt;Orientation&gt;</code></em> is a vector pointing in<br />
the direction that the colors blend. For example</p><br />
<pre><br />
pigment { gradient x } // bands of color vary as you move<br />
// along the &quot;x&quot; direction.<br />
</pre><br />
<br />
<p>produces a series of smooth bands of color that look like layers of colors<br />
next to each other. Points at x=0 are the first color in the color map. As<br />
the x location increases it smoothly turns to the last color at x=1. Then it<br />
starts over with the first again and gradually turns into the last color at<br />
x=2. In POV-Ray versions older than 3.5 the pattern reverses for negative values of x. <br />
As per POV-Ray 3.5 this is not the case anymore. Using <code>gradient<br />
y</code> or <code>gradient z</code> makes the colors blend along the y- or<br />
z-axis. Any vector may be used but x, y and z are most common.</p><br />
<p><br />
As a normal pattern, gradient generates a saw-tooth or ramped wave<br />
appearance. The syntax is</p><br />
<pre><br />
normal {<br />
gradient &lt;Orientation&gt; [, Bump_Size]<br />
[NORMAL_MODIFIERS...]<br />
}<br />
</pre><br />
<br />
<p>where the vector <em><code>&lt;Orientation&gt;</code></em> is a required<br />
parameter but the float <em><code>Bump_Size</code></em> which follows is<br />
optional.</p><br />
<p class="Note"><strong>Note:</strong> The comma is required especially if <em>Bump_Size</em> is<br />
negative.</p><br />
<br />
<p>If only the range -1 to 1 was used of the old gradient, for example in a<br />
<code>sky_sphere</code>, it can be replaced by the <code>planar</code> or <code>marble</code><br />
pattern and revert the color_map. Also rotate the pattern for other orientations than <code>y</code>.<br />
A more general solution is to use <code>function{abs(x)}</code> as a pattern instead<br />
of <code>gradient x</code> and similar for <code>gradient y</code> and <code>gradient z</code>.</p></div>
Jholsenback