mirror of https://github.com/LDDestroier/CC/
Updated transformation function
This commit is contained in:
parent
bdc9deef5a
commit
e87bfa0ff9
|
@ -71,12 +71,10 @@ local shades = {
|
||||||
["e"] = {"5","6","7","8"},
|
["e"] = {"5","6","7","8"},
|
||||||
}
|
}
|
||||||
|
|
||||||
newTerm.meta.textTransformation = function(x, y, dot, meta)
|
newTerm.meta.transformation = function(x, y, char, text, back, meta)
|
||||||
return x, y, shades[dot[2]][math.random(1, intensity)]
|
return {x, y},
|
||||||
end
|
{x, y, shades[text][math.random(1, intensity)]},
|
||||||
|
{x, y, shades[back][math.random(1, intensity)]}
|
||||||
newTerm.meta.backTransformation = function(x, y, dot, meta)
|
|
||||||
return x, y, shades[dot[3]][math.random(1, intensity)]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local oldTerm = term.redirect(newTerm)
|
local oldTerm = term.redirect(newTerm)
|
||||||
|
@ -90,8 +88,7 @@ end, function()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
newTerm.meta.textTransformation = nil
|
newTerm.meta.transformation = nil
|
||||||
newTerm.meta.backTransformation = nil
|
|
||||||
newTerm.redraw()
|
newTerm.redraw()
|
||||||
|
|
||||||
term.redirect(oldTerm)
|
term.redirect(oldTerm)
|
||||||
|
|
Loading…
Reference in New Issue