SHARE
TWEET

Untitled

Romanok2805 Aug 20th, 2019 (edited) 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local a=require("qr")local b=require("buffer2")print("Напишите текст:")local c=io.read()local d=a.encode(c)local e=#d[1]local f=#d;local g={[0]=0xFFFFFF,[1]=0x0}if f>200 or e>320 then print("Слишком большой текст")os.exit()end;local h=math.floor((160-e)/2)local i=math.floor((100-f)/2)b.drawRectangle(1,1,160,50,g[0],0x0," ")for j,k in pairs(d)do for l,m in pairs(k)do b.semiPixelSet(j+h,l+i,g[m])end end;b.drawChanges(true)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top