LibGfx: Fix parameters name of Color::from_linear_srgb

And sort the declarations alphabetically while touching it.
This commit is contained in:
Lucas CHOLLET 2024-11-14 22:46:34 -05:00 committed by Andreas Kling
parent 0b9c4b8adc
commit 2173219eac
Notes: github-actions[bot] 2024-11-16 09:30:45 +00:00

View file

@ -185,10 +185,10 @@ public:
static Color from_a98rgb(float r, float g, float b, float alpha = 1.0f);
static Color from_display_p3(float r, float g, float b, float alpha = 1.0f);
static Color from_lab(float L, float a, float b, float alpha = 1.0f);
static Color from_linear_srgb(float r, float g, float b, float alpha = 1.0f);
static Color from_pro_photo_rgb(float r, float g, float b, float alpha = 1.0f);
static Color from_xyz50(float x, float y, float z, float alpha = 1.0f);
static Color from_xyz65(float x, float y, float z, float alpha = 1.0f);
static Color from_linear_srgb(float x, float y, float z, float alpha = 1.0f);
// https://bottosson.github.io/posts/oklab/
static constexpr Color from_oklab(float L, float a, float b, float alpha = 1.0f)