Advertisement
bob558

test

Dec 30th, 2015
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local component = require("component")
  2. local hologram = component.hologram
  3. local c = 23
  4.  
  5. hologram.setPaletteColor(1, 0xFFFFFF) -- белый
  6.  
  7. local alf = {}
  8.  
  9. alf[p]= {0, 0, 1, 1, 1, 1, 1, 0,
  10.         0, 0, 1, 0, 0, 0, 0, 0,
  11.         0, 0, 1, 0, 0, 0, 0, 0,
  12.         0, 0, 1, 1, 1, 1, 1, 0,
  13.         0, 0, 0, 0, 0, 0, 0, 0,
  14.         0, 0, 0, 0, 0, 0, 0, 0} -- п
  15.  
  16. -- alf[100] = {00111110, 00100000, 00100000, 00111110, 00000000, 00000000} -- п
  17.  
  18. -- alf[101] = {00111110, 00101000, 00101000, 00010000, 00000000, 00000000} -- р
  19.  
  20. local function print_txt()
  21.   local x = 5
  22.   local z = 23
  23.  
  24.   for at=1, 48 do -- цикл отрисовки буквы
  25.     local y = 30
  26.     x = x + 1
  27.     for ty=1, 8 do
  28.       y = y-ty
  29.       tt = alf[p][at]
  30.       hologram.set(x, y, z, tt) -- отрисовка
  31.     end
  32.   end
  33. end
  34.  
  35. ----== Тело программы ==----
  36.  
  37. hologram.clear()
  38.  
  39. print_txt()
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement