RGBMatrix.Utils (rgb_matrix v0.1.0) View Source

Shared utility functions that are generally useful.

Link to this section Summary

Functions

Modulo operation that supports negative numbers.

Link to this section Functions

Specs

Modulo operation that supports negative numbers.

This is effectively mod as it exists in most other languages. Elixir's rem doesn't act the same as other languages for negative numbers.