Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local keyboard = require("keyboard")
- local shell = require("shell")
- local gpu = component.gpu
- local hologram = component.hologram
- local w, h = gpu.getResolution()
- function round(num, idp)
- local mult = 10^(idp or 0)
- return math.floor(num * mult + 0.5 ) / mult
- end
- hologram.clear()
- gpu.fill(1,1,w,h, " ")
- gpu.setForeground(0xFFFFFF)
- gpu.setBackground(0x000000)
- --for x = 1, 48 do
- -- for z = 1, 48 do
- -- for y = 19, 20 do
- -- hologram.set(20, 20, 20, 2)
- -- end
- -- end
- --end
- h = 24
- k = 17
- r = 15
- step = 1
- --hologram.fill(1,1,1,48,2)
- for theta = 1, 360, step do
- x = h + r * math.cos(theta)
- y = k + r * math.sin(theta)
- --print("x: " .. x .. " y:" .. y)
- --gpu.set(x, y, "X")
- hologram.set(x, y, 20, 2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement