FastLED 3.9.15
Loading...
Searching...
No Matches

◆ grad16() [2/3]

static int16_t grad16 ( uint8_t hash,
int16_t x,
int16_t y )
inlinestatic

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}
int y
Definition simple.h:93
int x
Definition simple.h:92

References x, and y.