Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

25
LINES

< > BotCompany Repo | #107 // Editor - first try

Rendition of first frame

Lua code - GUI

1  
get("#108") -- newEnv
2  
get("#109") -- copyRect
3  
4  
--width = 500
5  
--height = 200
6  
--pixels = {}
7  
8  
fontRendererEnv = newEnv()
9  
fontRenderer = loadSnippet("#93", fontRendererEnv)
10  
11  
fontRendererEnv.text = "yo yo yo! "
12  
fontRenderer()
13  
14  
width=fontRendererEnv.width
15  
height=fontRendererEnv.height
16  
pixels=fontRendererEnv.pixels
17  
18  
if not cursorEnv then
19  
  cursorEnv = newEnv()
20  
  cursor = loadSnippet("#99", cursorEnv)
21  
end
22  
23  
cursor()
24  
copyRect(cursorEnv, _G, 0, 0, cursorEnv.width, cursorEnv.height, width-cursorEnv.width, 0)
25  
animateAgainIn = cursorEnv.animateAgainIn

show applet  test run  test run with input  download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 567 [visualize]

Snippet ID: #107
Snippet name: Editor - first try
Eternal ID of this version: #107/1
Text MD5: 485a42b15a12362ccd628702211bbda3
Author: stefan
Category: editors
Type: Lua code - GUI
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2014-01-12 13:47:54
Source code size: 567 bytes / 25 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 818 / 243
Referenced in: [show references]