82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
color = lib.color(color)
end
color = color:to_hsl()
end
return image.change(self, {
fx = lib.tbl.append(self.fx, {
string.format('hsl:%s:%s:%s',
color.hue, color.sat, color.lum)
})
})
end;
rehue = function(self, hue)
return self.shift{hue=hue, sat=0, lum=0}
end;
|
|
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
color = lib.color(color)
end
color = color:to_hsl()
end
return image.change(self, {
fx = lib.tbl.append(self.fx, {
string.format('hsl:%s:%s:%s',
color.hue, color.sat*100, color.lum*100)
})
})
end;
rehue = function(self, hue)
return self.shift{hue=hue, sat=0, lum=0}
end;
|