[rtextures] add MixColors. a function to mix 2 colors together (#4310)

* added MixColors function to mix 2 colors together (Line 1428 raylib.h and Line 4995 in rtextures.c)

* renamed MixColors to ColorLerp (https://github.com/raysan5/raylib/pull/4310#issuecomment-2340121038)

* changed ColorLerp to be more like other functions

---------

Co-authored-by: CI <-ci@not-real.com>
This commit is contained in:
SusgUY446 2024-09-15 12:55:45 +02:00 committed by GitHub
parent d02fcc5262
commit ddc523ffbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 0 deletions

View file

@ -1435,6 +1435,7 @@ RLAPI Color GetColor(unsigned int hexValue); // G
RLAPI Color GetPixelColor(void *srcPtr, int format); // Get Color from a source pixel pointer of certain format
RLAPI void SetPixelColor(void *dstPtr, Color color, int format); // Set color formatted into destination pixel pointer
RLAPI int GetPixelDataSize(int width, int height, int format); // Get pixel data size in bytes for certain format
RLAPI Color ColorLerp(Color color1, Color color2, float d); // Mix 2 Colors Together
//------------------------------------------------------------------------------------
// Font Loading and Text Drawing Functions (Module: text)