FastLED 3.10.8
Loading...
Searching...
No Matches

◆ hash()

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

Definition at line 20 of file noise_woryley.cpp.hpp.

20 {
21 u32 n = (u32)(x * 374761393 + y * 668265263);
22 n = (n ^ (n >> 13)) * 1274126177;
23 return (u16)((n ^ (n >> 16)) & 0xFFFF);
24}

References fl::FL_NO_EXCEPT, hash(), fl::x, and fl::y.

Referenced by feature_point(), and hash().

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