Current Objective: Use Gamma Correction to Improve the Fade
Requirements
- Ensure you understand each step before moving on.
- Write code for each step as you go.
- Cleanly format your code.
- Test your code at the end of each page.
Using Gamma Correction
Test the Night Light Mode and notice the brightness is saturated: it is so bright that there is hardly any visible changes for the last 25% of knob travel in Night Light Mode.
Read this resource on Gamma Correction.
The pow(base, exponent) function raises the base to the exponent power.
It is built-in to the math library. More details are available here.