#! code Logo

Wrap Around Increments

21st June 2020 - 6 minutes read time

Something I've been writing long hand for a number of years is wrap around increments. This is essentially adding to a value that has an upper limit, and wrapping back to 0 when that max value is reached. This can be done with an if statement.

Read the full article