Differences From
Artifact [d9e5a5527c]:
125 125 end;
126 126
127 127 int = function(self)
128 128 return bit.bor(bit.lshift(self:int24(), 8), math.floor(0xff*(self.alpha or 1.0)))
129 129 end;
130 130
131 131 fmt = function(self, text) return
132 - minetest.colorize(self:hex(), text)
132 + core.colorize(self:hex(), text)
133 133 end;
134 134
135 135 bg = function(self, text) return
136 - text .. minetest.get_background_escape_sequence(self:hex())
136 + text .. core.get_background_escape_sequence(self:hex())
137 137 end;
138 138
139 139 lum = function(self) return
140 140 (self.red + self.green + self.blue) / 3
141 141 end;
142 142
143 143 pair = function(self) --> bg, fg