diff --git a/OS.lua b/OS.lua index 2efa89e5..a0dbfc23 100755 --- a/OS.lua +++ b/OS.lua @@ -248,10 +248,10 @@ local function changeWallpaper() local r, g, b for i = 3, #MineOSInterface.mainContainer.background.wallpaper, 4 do - r, g, b = color.IntegerToRGB(MineOSInterface.mainContainer.background.wallpaper[i]) + r, g, b = color.integerToRGB(MineOSInterface.mainContainer.background.wallpaper[i]) MineOSInterface.mainContainer.background.wallpaper[i] = color.RGBToInteger(math.floor(r * MineOSCore.properties.wallpaperBrightness), math.floor(g * MineOSCore.properties.wallpaperBrightness), math.floor(b * MineOSCore.properties.wallpaperBrightness)) - r, g, b = color.IntegerToRGB(MineOSInterface.mainContainer.background.wallpaper[i + 1]) + r, g, b = color.integerToRGB(MineOSInterface.mainContainer.background.wallpaper[i + 1]) MineOSInterface.mainContainer.background.wallpaper[i + 1] = color.RGBToInteger(math.floor(r * MineOSCore.properties.wallpaperBrightness), math.floor(g * MineOSCore.properties.wallpaperBrightness), math.floor(b * MineOSCore.properties.wallpaperBrightness)) end end diff --git a/lib/GUI.lua b/lib/GUI.lua index d446f2ba..f898786c 100755 --- a/lib/GUI.lua +++ b/lib/GUI.lua @@ -3651,7 +3651,7 @@ function GUI.palette(x, y, startColor) local function paletteDrawBigCrestPixel(x, y, symbol) local background, foreground = buffer.get(x, y) - local r, g, b = color.IntegerToRGB(background) + local r, g, b = color.integerToRGB(background) buffer.set(x, y, background, (r + g + b) / 3 >= 127 and 0x0 or 0xFFFFFF, symbol) end @@ -3727,7 +3727,7 @@ function GUI.palette(x, y, startColor) local function paletteSwitchColorFromHex(hex) palette.color.integer = hex - palette.color.rgb.red, palette.color.rgb.green, palette.color.rgb.blue = color.IntegerToRGB(hex) + palette.color.rgb.red, palette.color.rgb.green, palette.color.rgb.blue = color.integerToRGB(hex) palette.color.hsb.hue, palette.color.hsb.saturation, palette.color.hsb.brightness = color.RGBToHSB(palette.color.rgb.red, palette.color.rgb.green, palette.color.rgb.blue) paletteUpdateInputs() end