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

◆ hash()

u16 fl::anonymous_namespace{noise_woryley.cpp}::hash ( i32 x,
i32 y )

Definition at line 18 of file noise_woryley.cpp.

18 {
19 u32 n = (u32)(x * 374761393 + y * 668265263);
20 n = (n ^ (n >> 13)) * 1274126177;
21 return (u16)((n ^ (n >> 16)) & 0xFFFF);
22}
int y
Definition simple.h:93
int x
Definition simple.h:92

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: