From 5e412df0730d5d09a2966d7033c29b3847b344ab Mon Sep 17 00:00:00 2001 From: apyrr <116293161+apyrr@users.noreply.github.com> Date: Thu, 23 Apr 2026 20:09:40 +0300 Subject: [PATCH 1/3] Create Global.ColorAlpha.lua --- custom/Global.ColorAlpha.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 custom/Global.ColorAlpha.lua diff --git a/custom/Global.ColorAlpha.lua b/custom/Global.ColorAlpha.lua new file mode 100644 index 0000000..f141c9c --- /dev/null +++ b/custom/Global.ColorAlpha.lua @@ -0,0 +1,8 @@ +---Returns a new [Color](https://wiki.facepunch.com/gmod/Color) with the RGB components of the given [Color](https://wiki.facepunch.com/gmod/Color) and the alpha value specified. +---@realm shared +---@realm menu +---@source https://wiki.facepunch.com/gmod/Global.ColorAlpha +---@param color table The Color from which to take RGB values. This color will not be modified. +---@param alpha number The new alpha value, a number between 0 and 255. Values above 255 will be clamped. +---@return Color # The new Color with the modified alpha value +function _G.ColorAlpha(color, alpha) end From 3084cd17d82df71457fdeae01525a8c6a4cdad85 Mon Sep 17 00:00:00 2001 From: apyrr <116293161+apyrr@users.noreply.github.com> Date: Thu, 23 Apr 2026 20:10:15 +0300 Subject: [PATCH 2/3] Create Global.ColorRand.lua --- custom/Global.ColorRand.lua | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 custom/Global.ColorRand.lua diff --git a/custom/Global.ColorRand.lua b/custom/Global.ColorRand.lua new file mode 100644 index 0000000..fe9534d --- /dev/null +++ b/custom/Global.ColorRand.lua @@ -0,0 +1,7 @@ +---Creates a [Color](https://wiki.facepunch.com/gmod/Color) with randomized red, green, and blue components. If the alpha argument is true, alpha will also be randomized. +---@realm shared +---@realm menu +---@source https://wiki.facepunch.com/gmod/Global.ColorRand +---@param a? boolean Should alpha be randomized. +---@return Color # The created Color. +function _G.ColorRand(a) end From 01a92dd24b96035852ba978ff3648d8de575b553 Mon Sep 17 00:00:00 2001 From: Pollux <39353174+Pollux12@users.noreply.github.com> Date: Mon, 18 May 2026 12:30:24 +0100 Subject: [PATCH 3/3] Fix ColorAlpha color param --- custom/Global.ColorAlpha.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/Global.ColorAlpha.lua b/custom/Global.ColorAlpha.lua index f141c9c..42b68ea 100644 --- a/custom/Global.ColorAlpha.lua +++ b/custom/Global.ColorAlpha.lua @@ -2,7 +2,7 @@ ---@realm shared ---@realm menu ---@source https://wiki.facepunch.com/gmod/Global.ColorAlpha ----@param color table The Color from which to take RGB values. This color will not be modified. +---@param color Color The Color from which to take RGB values. This color will not be modified. ---@param alpha number The new alpha value, a number between 0 and 255. Values above 255 will be clamped. ---@return Color # The new Color with the modified alpha value function _G.ColorAlpha(color, alpha) end