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