feat: [#3649] Add rgb and lrgb color lerp modes (#3658) master
<!-- Hi, and thanks for contributing to Excalibur! Before you go any further, please read our contributing guide: https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md especially the "Submitting Changes" section: https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#submitting-changes --- A quick summary checklist is included below for convenience: --> === :clipboard: PR Checklist :clipboard: === - [x] :pushpin: issue exists in github for these changes - [x] :microscope: existing tests still pass - [x] :see_no_evil: code conforms to the [style guide](https://github.com/excaliburjs/Excalibur/blob/main/STYLEGUIDE.md) - [x] :triangular_ruler: new tests written and passing / old tests updated with new scenario(s) - [x] :page_facing_up: changelog entry added (or not needed) ================== <!-- If you're closing an issue with this pull request, or contributing a significant change, please include your changes in the appropriate section of CHANGELOG.md as outlined in https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#creating-a-pull-request. --> <!--Please format your pull request title according to our commit message styleguide: https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#commit-messages --> <!-- Thanks again! --> <!---------------------------------------------------------------------------------------------> Closes #3649 ## Changes: - `Color.lerp` rename to `Color.lerpHSL` - add `Color.lerpRGB` method, which uses linear interpolation for blending color - add `Color.lerpLRGB` method, which uses linear interpolation with gamma correction - add `Color.lerp` again, now as alias for other lerp methods with optional `colorSpace` param