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

◆ feature_point()

void fl::anonymous_namespace{noise_woryley.cpp}::feature_point ( int32_t gx,
int32_t gy,
int32_t & fx,
int32_t & fy )

Definition at line 25 of file noise_woryley.cpp.

25 {
26 uint16_t h = hash(gx, gy);
27 fx = (h & 0xFF) * 128; // scale to Q15 (0–32767)
28 fy = ((h >> 8) & 0xFF) * 128;
29}
uint16_t hash(int32_t x, int32_t y)

References feature_point(), and hash().

Referenced by feature_point().

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