Anonimo

Modulo:FunzioniGeneriche: differenze tra le versioni

Da Wikitrek.
m
nessun oggetto della modifica
(First TextColor iteration)
mNessun oggetto della modifica
Riga 100: Riga 100:
-- @return name of the color
-- @return name of the color
function p.TextColor(BackColor)
function p.TextColor(BackColor)
local hex = BackColor:gsub("#","")
local hex = string.sub(BackColor, 1)
local R, G, B
local R, G, B
     if hex:len() == 3 then
     if hex:len() == 3 then