Welcome to mirror list, hosted at ThFree Co, Russian Federation.

noise_8h.html « 3.1 « docs - github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 443fba5496a4b8d8d236f0f5b66c6a8bbe1a5105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>FastLED: noise.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">FastLED
   &#160;<span id="projectnumber">3.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">noise.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Noise functions provided by the library.  
<a href="#details">More...</a></p>

<p><a href="noise_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">scaled 16 bit noise functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>16 bit, fixed point implementation of perlin's Simplex Noise.</p>
<p>Coordinates are 16.16 fixed point values, 32 bit integers with integral coordinates in the high 16 bits and fractional in the low 16 bits, and the function takes 1d, 2d, and 3d coordinate values. These functions are scaled to return 0-65535 </p>
</div></td></tr>
<tr class="memitem:ga94be5ce8402e6147209f94d6006e8f00"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga94be5ce8402e6147209f94d6006e8f00"></a>
uint16_t&#160;</td><td class="memItemRight" valign="bottom"><b>inoise16</b> (uint32_t x, uint32_t y, uint32_t z)</td></tr>
<tr class="separator:ga94be5ce8402e6147209f94d6006e8f00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad5f2a2fa9858003b0d692d3700423f39"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gad5f2a2fa9858003b0d692d3700423f39"></a>
uint16_t&#160;</td><td class="memItemRight" valign="bottom"><b>inoise16</b> (uint32_t x, uint32_t y)</td></tr>
<tr class="separator:gad5f2a2fa9858003b0d692d3700423f39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga34b2848203803e1c7a2de01d7dbcea63"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga34b2848203803e1c7a2de01d7dbcea63"></a>
uint16_t&#160;</td><td class="memItemRight" valign="bottom"><b>inoise16</b> (uint32_t x)</td></tr>
<tr class="separator:ga34b2848203803e1c7a2de01d7dbcea63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">raw 16 bit noise functions</div></td></tr>
<tr class="memitem:ga810bdc406dcf8fd5b7add9041aa18abd"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___noise.html#ga810bdc406dcf8fd5b7add9041aa18abd">inoise16_raw</a> (uint32_t x, uint32_t y, uint32_t z)</td></tr>
<tr class="memdesc:ga810bdc406dcf8fd5b7add9041aa18abd"><td class="mdescLeft">&#160;</td><td class="mdescRight">16 bit raw versions of the noise functions.  <a href="group___noise.html#ga810bdc406dcf8fd5b7add9041aa18abd">More...</a><br /></td></tr>
<tr class="separator:ga810bdc406dcf8fd5b7add9041aa18abd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga77c11f2f9fea19661e8eaa04cf9a4155"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga77c11f2f9fea19661e8eaa04cf9a4155"></a>
int16_t&#160;</td><td class="memItemRight" valign="bottom"><b>inoise16_raw</b> (uint32_t x, uint32_t y)</td></tr>
<tr class="separator:ga77c11f2f9fea19661e8eaa04cf9a4155"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaee9489effd6415b16569307922fb12b9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaee9489effd6415b16569307922fb12b9"></a>
int16_t&#160;</td><td class="memItemRight" valign="bottom"><b>inoise16_raw</b> (uint32_t x)</td></tr>
<tr class="separator:gaee9489effd6415b16569307922fb12b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">8 bit scaled noise functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>8 bit, fixed point implementation of perlin's Simplex Noise.</p>
<p>Coordinates are 8.8 fixed point values, 16 bit integers with integral coordinates in the high 8 bits and fractional in the low 8 bits, and the function takes 1d, 2d, and 3d coordinate values. These functions are scaled to return 0-255 </p>
</div></td></tr>
<tr class="memitem:gaa521ccca6038d7b5e881fe2e8f35d3bc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa521ccca6038d7b5e881fe2e8f35d3bc"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>inoise8</b> (uint16_t x, uint16_t y, uint16_t z)</td></tr>
<tr class="separator:gaa521ccca6038d7b5e881fe2e8f35d3bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9641aa87f0a5557f73004fb73f81bba5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9641aa87f0a5557f73004fb73f81bba5"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>inoise8</b> (uint16_t x, uint16_t y)</td></tr>
<tr class="separator:ga9641aa87f0a5557f73004fb73f81bba5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab9d952a5258caa93c05ebdde0140cf0e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gab9d952a5258caa93c05ebdde0140cf0e"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>inoise8</b> (uint16_t x)</td></tr>
<tr class="separator:gab9d952a5258caa93c05ebdde0140cf0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">8 bit raw noise functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>8 bit raw versions of the noise functions.</p>
<p>These values are not scaled/altered and have output values roughly in the range (-70,70) </p>
</div></td></tr>
<tr class="memitem:ga6c57ed3ea69e819c29602578ecbabd71"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga6c57ed3ea69e819c29602578ecbabd71"></a>
int8_t&#160;</td><td class="memItemRight" valign="bottom"><b>inoise8_raw</b> (uint16_t x, uint16_t y, uint16_t z)</td></tr>
<tr class="separator:ga6c57ed3ea69e819c29602578ecbabd71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae8a7338d2f14deb11f62086adf81dfe2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae8a7338d2f14deb11f62086adf81dfe2"></a>
int8_t&#160;</td><td class="memItemRight" valign="bottom"><b>inoise8_raw</b> (uint16_t x, uint16_t y)</td></tr>
<tr class="separator:gae8a7338d2f14deb11f62086adf81dfe2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabf6fbef9588c6d6ee35b7ad79fe14ace"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gabf6fbef9588c6d6ee35b7ad79fe14ace"></a>
int8_t&#160;</td><td class="memItemRight" valign="bottom"><b>inoise8_raw</b> (uint16_t x)</td></tr>
<tr class="separator:gabf6fbef9588c6d6ee35b7ad79fe14ace"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">raw fill functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>Raw noise fill functions - fill into a 1d or 2d array of 8-bit values using either 8-bit noise or 16-bit noise functions.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pData</td><td>the array of data to write into </td></tr>
    <tr><td class="paramname">num_points</td><td>the number of points of noise to compute </td></tr>
    <tr><td class="paramname">octaves</td><td>the number of octaves to use for noise </td></tr>
    <tr><td class="paramname">x</td><td>the x position in the noise field </td></tr>
    <tr><td class="paramname">y</td><td>the y position in the noise field for 2d functions </td></tr>
    <tr><td class="paramname">scalex</td><td>the scale (distance) between x points when filling in noise </td></tr>
    <tr><td class="paramname">scaley</td><td>the scale (distance) between y points when filling in noise </td></tr>
    <tr><td class="paramname">time</td><td>the time position for the noise field </td></tr>
  </table>
  </dd>
</dl>
</div></td></tr>
<tr class="memitem:ga1e4dba9289b03333697e70d4b7f3b006"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga1e4dba9289b03333697e70d4b7f3b006"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fill_raw_noise8</b> (uint8_t *pData, uint8_t num_points, uint8_t octaves, uint16_t x, int scalex, uint16_t time)</td></tr>
<tr class="separator:ga1e4dba9289b03333697e70d4b7f3b006"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9db885e8cd887367fbf17e70f7d6b7fd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9db885e8cd887367fbf17e70f7d6b7fd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fill_raw_noise16into8</b> (uint8_t *pData, uint8_t num_points, uint8_t octaves, uint32_t x, int scalex, uint32_t time)</td></tr>
<tr class="separator:ga9db885e8cd887367fbf17e70f7d6b7fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaaa7d79bb9fdaf2c6b315c61c2c951142"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaaa7d79bb9fdaf2c6b315c61c2c951142"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fill_raw_2dnoise8</b> (uint8_t *pData, int width, int height, uint8_t octaves, uint16_t x, int scalex, uint16_t y, int scaley, uint16_t time)</td></tr>
<tr class="separator:gaaa7d79bb9fdaf2c6b315c61c2c951142"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga46bde35765a7eddbd1049fe49429e94e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga46bde35765a7eddbd1049fe49429e94e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fill_raw_2dnoise16into8</b> (uint8_t *pData, int width, int height, uint8_t octaves, uint32_t x, int scalex, uint32_t y, int scaley, uint32_t time)</td></tr>
<tr class="separator:ga46bde35765a7eddbd1049fe49429e94e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2a41b0b6fc438305e9fc35307fcd641d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga2a41b0b6fc438305e9fc35307fcd641d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fill_raw_2dnoise16</b> (uint16_t *pData, int width, int height, uint8_t octaves, <a class="el" href="classq.html">q88</a> freq88, fract16 amplitude, int skip, uint32_t x, int scalex, uint32_t y, int scaley, uint32_t time)</td></tr>
<tr class="separator:ga2a41b0b6fc438305e9fc35307fcd641d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7731d44b05067579cf4861f0a449f257"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7731d44b05067579cf4861f0a449f257"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fill_raw_2dnoise16into8</b> (uint8_t *pData, int width, int height, uint8_t octaves, <a class="el" href="classq.html">q44</a> freq44, fract8 amplitude, int skip, uint32_t x, int scalex, uint32_t y, int scaley, uint32_t time)</td></tr>
<tr class="separator:ga7731d44b05067579cf4861f0a449f257"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">fill functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>fill functions to fill leds with values based on noise functions.</p>
<p>These functions use the fill_raw_* functions as appropriate. </p>
</div></td></tr>
<tr class="memitem:ga7967fd7b1a7230a0f7428347c70dac3e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7967fd7b1a7230a0f7428347c70dac3e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fill_noise8</b> (<a class="el" href="struct_c_r_g_b.html">CRGB</a> *leds, int num_leds, uint8_t octaves, uint16_t x, int scale, uint8_t hue_octaves, uint16_t hue_x, int hue_scale, uint16_t time)</td></tr>
<tr class="separator:ga7967fd7b1a7230a0f7428347c70dac3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga55b7c44d1f979e29b51335ca3fe90e1c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga55b7c44d1f979e29b51335ca3fe90e1c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fill_noise16</b> (<a class="el" href="struct_c_r_g_b.html">CRGB</a> *leds, int num_leds, uint8_t octaves, uint16_t x, int scale, uint8_t hue_octaves, uint16_t hue_x, int hue_scale, uint16_t time)</td></tr>
<tr class="separator:ga55b7c44d1f979e29b51335ca3fe90e1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6fcc17e60eac4b9dbb620f7e354177f1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga6fcc17e60eac4b9dbb620f7e354177f1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fill_2dnoise8</b> (<a class="el" href="struct_c_r_g_b.html">CRGB</a> *leds, int width, int height, bool serpentine, uint8_t octaves, uint16_t x, int xscale, uint16_t y, int yscale, uint16_t time, uint8_t hue_octaves, uint16_t hue_x, int hue_xscale, uint16_t hue_y, uint16_t hue_yscale, uint16_t hue_time, bool blend)</td></tr>
<tr class="separator:ga6fcc17e60eac4b9dbb620f7e354177f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga714a0f305e385a60d81a40d1f98b53fc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga714a0f305e385a60d81a40d1f98b53fc"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fill_2dnoise16</b> (<a class="el" href="struct_c_r_g_b.html">CRGB</a> *leds, int width, int height, bool serpentine, uint8_t octaves, uint32_t x, int xscale, uint32_t y, int yscale, uint32_t time, uint8_t hue_octaves, uint16_t hue_x, int hue_xscale, uint16_t hue_y, uint16_t hue_yscale, uint16_t hue_time, bool blend, uint16_t hue_shift=0)</td></tr>
<tr class="separator:ga714a0f305e385a60d81a40d1f98b53fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Noise functions provided by the library. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 10 2015 22:36:07 for FastLED by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>