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 634 of file noise.cpp.
634 {
635
637 n+= 64;
638 uint8_t ans =
qadd8( n, n);
639 return ans;
640}
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.