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.animateAgainInshow 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
| 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: | 1309 / 385 |
| Referenced in: | #3000190 - Answer for stefanreich(>> t 20 questions) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |