Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add gamma_ramp_arrays and calculate_gamma_ramp
- gamma_ramp_arrays is similar to gamma_ramp, but returns the gamma ramps as an array of 3 arrays, this way no heap allocations are made and users get a compile time guarantee that each ramp contains 256 values - calculate_gamma_ramp wraps SDL_CalculateGammaRamp, which calculates the gamma ramp for a gives gamma value, see https://wiki.libsdl.org/SDL2/SDL_CalculateGammaRamp
- Loading branch information