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

◆ hash()

uint16_t fl::anonymous_namespace{noise_woryley.cpp}::hash ( int32_t x,
int32_t y )

Definition at line 18 of file noise_woryley.cpp.

18 {
19 uint32_t n = (uint32_t)(x * 374761393 + y * 668265263);
20 n = (n ^ (n >> 13)) * 1274126177;
21 return (uint16_t)((n ^ (n >> 16)) & 0xFFFF);
22}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:82
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:83

References hash(), x, and y.

Referenced by feature_point(), and hash().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: