FastLED
3.10.8
Loading...
Searching...
No Matches
◆
grad()
float fl::FlowFieldFloat::Perlin2D::grad
(
int
h
,
float
x
,
float
y
)
static
private
Definition at line
96
of file
flowfield.cpp.hpp
.
96
{
97
switch
(h & 7) {
98
case
0:
99
return
x
+
y
;
100
case
1:
101
return
-
x
+
y
;
102
case
2:
103
return
x
-
y
;
104
case
3:
105
return
-
x
-
y
;
106
case
4:
107
return
x
;
108
case
5:
109
return
-
x
;
110
case
6:
111
return
y
;
112
default
:
113
return
-
y
;
114
}
115
}
fl::x
x
Definition
transposition.cpp.hpp:25
fl::y
y
Definition
transposition.cpp.hpp:24
References
fl::FL_NO_EXCEPT
,
fl::x
, and
fl::y
.
fl
FlowFieldFloat
Perlin2D
Generated on Sun Oct 18 2026 00:57:06 for FastLED by
1.13.2