param type change and added validator.assert

This commit is contained in:
Mikayla Fischler
2023-11-05 13:23:22 -05:00
parent 16258a2631
commit 32653c3b8a
2 changed files with 3 additions and 2 deletions

View File

@@ -279,7 +279,7 @@ end
-- check if a color is a valid single color
---@nodiscard
---@param color integer
---@param color any
---@return boolean valid
function rsio.is_color(color)
return util.is_int(color) and (color > 0) and (_B_AND(color, (color - 1)) == 0)