ReC98/th01/math/wave.hpp

4 lines
100 B
C++

inline pixel_t wave_x(pixel_t amp, int t) {
return ((static_cast<long>(amp) * Sin8(t)) / 0x100);
}