This commit is contained in:
Insality
2025-09-27 12:49:43 +03:00
parent 9ee084c502
commit 9bf4d32d40
2 changed files with 17 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ local COLOR_WHITE = vmath.vector4(1, 1, 1, 1)
local COLOR_X = hash("color.x")
local COLOR_Y = hash("color.y")
local COLOR_Z = hash("color.z")
local ALPHA = hash("color.w")
local M = {}
@@ -83,7 +84,6 @@ function M.lerp(t, color1, color2)
end
---Convert hex color to rgb values.
---@param hex string Hex color. #00BBAA or 00BBAA or #0BA or 0BA
---@return number, number, number