8-Bit, fixed point implementation of Perlin's noise.
- See also
- inoise8_raw()
- Returns
- scaled noise value as an unsigned integer, 0-255
- Parameters
-
x | x-axis coordinate on noise map (1D) |
y | y-axis coordinate on noise map (2D) |
Definition at line 660 of file noise.cpp.
660 {
661
663 n+= 64;
664 uint8_t ans =
qadd8( n, n);
665 return ans;
666}
LIB8STATIC_ALWAYS_INLINE uint8_t qadd8(uint8_t i, uint8_t j)
Add one byte to another, saturating at 0xFF.
int8_t inoise8_raw(uint16_t x, uint16_t y, uint16_t z)
8-bit, fixed point implementation of Perlin's noise without scaling.
References inoise8_raw(), qadd8(), x, and y.