I am writing a simple screensaver which displays a picture in the center of a 3x5 monitor screen untill someone touches it. Now the problem I am having is that I have no idea how to pretty much get started with this.
So far I have my picture, printing that on the monitor, but that is pretty much it. I have read on the touch functions that come with the advanced monitor, but I am not sure how to use them.
My script so far:
mon = peripheral.wrap("back")
term.redirect(mon)
image = paintutils.loadImage("saver")
paintutils.drawImage(image, 15, 2)
term.restore()
Its not much, but its something that only prints out the picture. I am not sure how to do it, but I figured I will need a while true loop in there, with a certain timer.
To list it:
-Starts with screensaver
-Waits for monitor_touch event
-Displays other stuff
-After certain time, it will go back to screensaver
-Back to the start of this list
If anyone can help me out with this,
Thanks ahead












