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

get("#108") -- newEnv
get("#109") -- copyRect

--width = 500
--height = 200
--pixels = {}

fontRendererEnv = newEnv()
fontRenderer = loadSnippet("#93", fontRendererEnv)

fontRendererEnv.text = "yo yo yo! "
fontRenderer()

width=fontRendererEnv.width
height=fontRendererEnv.height
pixels=fontRendererEnv.pixels

if not cursorEnv then
  cursorEnv = newEnv()
  cursor = loadSnippet("#99", cursorEnv)
end

cursor()
copyRect(cursorEnv, _G, 0, 0, cursorEnv.width, cursorEnv.height, width-cursorEnv.width, 0)
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: 806 / 240
Referenced in: [show references]