UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

11 lines (10 loc) 391 B
/** * Increment a 31-bit unsigned integer, wrapping around to 0. Useful for * implementing presentation hashes and other wrapping counters. * * Note that this does no validation checks, and will assume that the input is a * valid 31-bit unsigned integer. Behaviour is undefined for any other input. * * @category Helper */ export declare function incrementUint31(x: number): number;