funktioniert nimmer aber heut is gut

This commit is contained in:
2024-02-26 02:25:25 +01:00
parent 6165808cc4
commit 9253f00eef
2 changed files with 123 additions and 46 deletions

View File

@@ -6,20 +6,19 @@ local event = require( "event" )
local splashText = "Stromanzeige - Ultimate ROG RGB LED Edition"
local frameTitle = "Power Monitor - Klicken zum Beenden"
local oldW, oldH = gpu.getResolution()
local newW = 160
local newH = 50
local numberOfPanels = 2
local panelWidth = (newW / numberOfPanels)
gpu.setResolution(newW, newH)
function clearScreen()
local w,h = gpu.getResolution()
drawLine(1, 1, w, h, 0x000000)
end
function drawLine(startX, startY, stopX, stopY, colorOfLine)
local oldColor = gpu.getBackground(false)
gpu.setBackground(colorOfLine, false)