From 2173219eac53dbe2ef64dd6570d6fd5500b4dc50 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Thu, 14 Nov 2024 22:46:34 -0500 Subject: [PATCH] LibGfx: Fix parameters name of `Color::from_linear_srgb` And sort the declarations alphabetically while touching it. --- Libraries/LibGfx/Color.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibGfx/Color.h b/Libraries/LibGfx/Color.h index 4bbfd4dd58b..f278a5bf5fc 100644 --- a/Libraries/LibGfx/Color.h +++ b/Libraries/LibGfx/Color.h @@ -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)