FastLED
3.9.15
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
x
Variables
Typedefs
a
b
c
d
e
h
i
l
o
p
r
s
t
u
v
x
Enumerations
Enumerator
b
c
d
f
h
k
l
m
n
p
r
s
w
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
v
x
y
Enumerations
Enumerator
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
y
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
k
l
n
p
q
r
s
t
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
◆
grad16()
[2/3]
static int16_t grad16
(
uint8_t
hash
,
int16_t
x
,
int16_t
y
)
inline
static
Definition at line
138
of file
noise.cpp
.
138
{
139
hash
=
hash
& 7;
140
int16_t u,v;
141
if
(hash < 4) { u =
x
; v =
y
; }
else
{ u =
y
; v =
x
; }
142
if
(hash&1) { u = -u; }
143
if
(hash&2) { v = -v; }
144
145
return
AVG15(u,v);
146
}
x
uint32_t x[NUM_LAYERS]
Definition
Fire2023.ino:82
y
uint32_t y[NUM_LAYERS]
Definition
Fire2023.ino:83
fl::anonymous_namespace{noise_woryley.cpp}::hash
uint16_t hash(int32_t x, int32_t y)
Definition
noise_woryley.cpp:18
References
x
, and
y
.
noise.cpp
Generated on Tue Jun 24 2025 00:58:14 for FastLED by
1.13.2