залупа

This commit is contained in:
Igor Timofeev 2016-09-19 16:52:48 +03:00
parent 2736df9cd2
commit 0857eecfdd
2 changed files with 2 additions and 2 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -196,7 +196,7 @@ local function createWindow(x, y)
window:addPanel("backgroundPanel", x, y, window.width, window.height, 0xEEEEEE)
bigRainbow = window:addImage("bigRainbow", x, y, image.create(50, 25))
bigRainbow.onTouch = function(object, eventData)
bigRainbow.onTouch = function(eventData)
xBigCrest, yBigCrest = eventData[3], eventData[4]
local _, _, background = component.gpu.get(eventData[3], eventData[4])
switchColorFromHex(background)
@ -207,7 +207,7 @@ local function createWindow(x, y)
x = x + bigRainbow.width + 2
miniRainbow = window:addImage("miniRainbow", x, y, image.create(3, 25))
miniRainbow.onTouch = function(object, eventData)
miniRainbow.onTouch = function(eventData)
yMiniCrest = eventData[4]
switchColorFromHsb((eventData[4] - miniRainbow.y) * 360 / miniRainbow.height, currentColor.hsb.saturation, currentColor.hsb.brightness)
refreshRainbows()