Cutting a release
Publish Release / build (push) Canceled after 22s

This commit is contained in:
2026-08-20 16:58:43 +02:00
parent 7c0c5e4a85
commit 952daa2897
4 changed files with 31 additions and 1 deletions
@@ -269,6 +269,11 @@ end
---@param rgba table
---@return string
function DrawingHelper.ColorTableToColorString(rgba)
if rgba == nil or #rgba < 4 or rgba[1] == nil or rgba[2] == nil or rgba[3] == nil or rgba[4] == nil then
drawingLogger:warn("ColorTableToColorString called with invalid rgba table, returning default color string '0x00000000'")
return "0x00000000"
end
local r = string.format("%02X", math.floor(rgba[1] * 255))
local g = string.format("%02X", math.floor(rgba[2] * 255))
local b = string.format("%02X", math.floor(rgba[3] * 255))