Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

scroll_q8_wrapped

Function scroll_q8_wrapped 

Source
pub fn scroll_q8_wrapped(
    speed: i16,
    phase: u8,
    period: u16,
    tick: u32,
    hz: u16,
) -> u8
Expand description

Signed Q8 texels/second, truncated toward zero and wrapped to a texture. period must be in 1..=256; a zero tick rate leaves only the phase.