mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:57:44 +00:00
LibGfx: Rename Color::from_rgba() => Color::from_argb()
This matches the rename of RGBA32 to ARGB32. It also makes more sense when you see it used with 32-bit hexadecimal literals: Before: Color::from_rgba(0xaarrggbb) After: Color::from_argb(0xaarrggbb)
This commit is contained in:
parent
5ace66a903
commit
a6a8ba80fc
11 changed files with 38 additions and 38 deletions
|
@ -64,7 +64,7 @@ public:
|
|||
}
|
||||
|
||||
static constexpr Color from_rgb(unsigned rgb) { return Color(rgb | 0xff000000); }
|
||||
static constexpr Color from_rgba(unsigned rgba) { return Color(rgba); }
|
||||
static constexpr Color from_argb(unsigned argb) { return Color(argb); }
|
||||
|
||||
static constexpr Color from_cmyk(float c, float m, float y, float k)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue