FastLED
3.9.15
Loading...
Searching...
No Matches
◆
grad16()
[2/3]
static fl::i16 grad16
(
fl::u8
hash
,
fl::i16
x
,
fl::i16
y
)
inline
static
Definition at line
147
of file
noise.cpp.hpp
.
147
{
148
hash
=
hash
& 7;
149
fl::i16 u,v;
150
if
(hash < 4) { u =
x
; v =
y
; }
else
{ u =
y
; v =
x
; }
151
if
(hash&1) { u = -u; }
152
if
(hash&2) { v = -v; }
153
154
return
AVG15(u,v);
155
}
y
int y
Definition
simple.h:93
x
int x
Definition
simple.h:92
fl::anonymous_namespace{noise_woryley.cpp.hpp}::hash
u16 hash(i32 x, i32 y)
Definition
noise_woryley.cpp.hpp:19
References
x
, and
y
.
noise.cpp.hpp
Generated on Tue Jun 16 2026 00:07:02 for FastLED by
1.13.2