From 0857eecfdd0d79b1b4622ee2de1bab708aaada44 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Mon, 19 Sep 2016 16:52:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B7=D0=B0=D0=BB=D1=83=D0=BF=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 18436 -> 18436 bytes lib/palette.lua | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.DS_Store b/.DS_Store index 08b6fcb53ccdba82d66e5d3c4dc2d362cd044269..baa33a09be7340e44c92a5b3472df34d6328b863 100644 GIT binary patch delta 72 zcmZpfz}PZ@af2>9yNQ90g0ZFPWL+!w&DHFATuikOHoq2J&IF>Th|H8jRbae|jor+` OL`T8Ic(abx4PF31{T6`$ delta 72 zcmZpfz}PZ@af2>9yMcj@g0Y$5WL+!w&DHFATucQMHoq2J&IF>Th|H8jRbae|jork= N6sW~wvyRmbUH~8!6|evR diff --git a/lib/palette.lua b/lib/palette.lua index 68f39e10..0ab8e71d 100755 --- a/lib/palette.lua +++ b/lib/palette.lua @@ -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()