Blyx Nest Blyx language
Registry / Library
library · v0.1.1

Periodic Index

Wrap a signed pixel or lattice coordinate into a repeating axis of positive integer width.

Source repository · Package JSON

Use Periodic Index

use vendor::periodic_index::periodic_index;

Run the example

nest demo periodic_index@0.1.1
blyxc native-run periodic_index-demo/main.blyx
Example source and expected output
use vendor::periodic_index::periodic_index;

fn main() {
    println!(periodic_index(-1,8));
}

Expected output

7

Published versions

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse filesbe1e684a01852898e4bd062bb2468bf6d9a35da9e7410f0d268fae7b3debd7d491e963b468
0.1.0Download ZIP · Browse files6349f23784f703d20eeef00ae2a011075add2025884bc6fc639ab1aa51f0aa4798e3822984