Рефакторинг библиотеки для работы с цветом и оптимизация алгоритма сжатия цвета

This commit is contained in:
Igor Timofeev
2017-04-24 04:34:43 +03:00
parent 330e5edabe
commit c3aa197047
19 changed files with 481 additions and 94 deletions

View File

@@ -1884,7 +1884,7 @@ function ecs.universalWindow(x, y, width, background, closeWindowAfter, ...)
elseif objectType == "color" then
local xPos, yPos = x + 1, objects[number].y
local blendedColor = require("colorlib").alphaBlend(objects[number][3], 0xFFFFFF, 0.705882)
local blendedColor = require("color").blend(objects[number][3], 0xFFFFFF, 0.705882)
local w = width - 2
ecs.colorTextWithBack(xPos, yPos + 2, blendedColor, background, string.rep("", w))