FastLED
3.9.15
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
142
of file
noise.cpp
.
142
{
143
hash
=
hash
& 7;
144
int16_t u,v;
145
if
(hash < 4) { u =
x
; v =
y
; }
else
{ u =
y
; v =
x
; }
146
if
(hash&1) { u = -u; }
147
if
(hash&2) { v = -v; }
148
149
return
AVG15(u,v);
150
}
y
int y
Definition
simple.h:93
x
int x
Definition
simple.h:92
fl::anonymous_namespace{noise_woryley.cpp}::hash
u16 hash(i32 x, i32 y)
Definition
noise_woryley.cpp:18
References
x
, and
y
.
noise.cpp
Generated on Fri Aug 22 2025 20:59:34 for FastLED by
1.13.2