catmall_ad.lua

by PC_Cat
440 days agolua
COPY
1
local bigfont = require "bigfont"
2
local mon = peripheral.find("monitor")
3

4
mon.setTextScale(1)
5
mon.setBackgroundColor(colors.black)
6
mon.setTextColor(colors.white)
7
mon.clear()
8
bigfont.writeOn(mon, 2, "Catmall", 7, 5)
9
bigfont.writeOn(mon, 1, "Your place for shopping", 2, 14)
10

11
local colors = {colors.purple,colors.blue,colors.green,colors.yellow,colors.orange,colors.red}
12
local xSize, ySize = mon.getSize()
13
for y,color in pairs(colors) do
14
  for x=1,xSize do
15
    mon.setCursorPos(x,ySize - y + 1)
16
    mon.setBackgroundColor(color)
17
    mon.write(" ")
18
  end
19
end