This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - Jim Bauwens
Pages: 1 2 [3] 4 5 ... 125
31
« on: April 14, 2014, 12:59:17 pm »
I really don't have much time at the moment, maybe I'll try to look into it somewhere tonight.
Also, instead of moving the segments, you should just shift the view. I think that should make some stuff much easier =)
32
« on: April 01, 2014, 04:05:28 am »
Pretty great news. From experience I can say that Balyta is a very nice person, so the future of Omnimaga is definitely guaranteed. I'm also happy about their decision not to filter Ndless talk
33
« on: March 30, 2014, 05:06:02 pm »
Please could someone help me ?
Try calling the setPos function of the body you attached the segment to.
35
« on: March 27, 2014, 06:08:20 pm »
Take a look at http://wiki.inspired-lua.org/TI.Image. At the moment I don't have time to write a routine, but if you spend some time reading how the format works you should be able to do it. Edit: Whatever: function mirror_img(imgstr, width , height) local out = imgstr:sub(1, 20) local p = 21 for y=1, height do local row = "" for x=1, width do row = imgstr:sub(p, p +1) .. row p = p + 2 end out = out .. row end
return out end
img_hi_src = "\32\0\0\0\32\0\0\0\0\0\0\0\64\0\0\0\16\0\1\000alalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalal\194\253alalalalalalalalalalalalalalalalalalalalalalalalalalalalalalal\194\253alalalalalalalalal\194\253alalalalal\194\253alalalalal\194\253\194\253alalalalalalal\194\253\194\253alalalalalalalalal\194\253alalalalal\194\253alalalalal\194\253\194\253alalalalalalal\194\253\194\253alalalalalalalalal\194\253alalalalal\194\253alalalal\194\253\194\253alalalalalalalal\194\253\194\253alalalalalalalal\194\253\194\253alalalalal\194\253alalalalalalalalalalalalalal\194\253\194\253alalalalalalalal\194\253\194\253alalalalal\194\253alalalalalalalalalalalalalal\194\253\194\253alalalalalalalal\194\253\194\253alalalalal\194\253alalalalalalalalalalalalalal\194\253\194\253alalalalalalalal\194\253\194\253alalalalal\194\253alalalalalalalalalalalalalal\194\253\194\253alalalalalalalal\194\253\194\253alalalalal\194\253alalalalalal\194\253alalalalalalal\194\253alalalalalalalalal\194\253\194\253alalalalal\194\253alalalalalal\194\253alalalalalalal\194\253alalalalalalalalalal\194\253\194\253\194\253\194\253\194\253\194\253\194\253alalalalalal\194\253alalalalalalal\194\253alalalalalalalal\194\253\194\253\194\253\194\253\194\253\194\253alal\194\253alalalalalal\194\253alalalalalalal\194\253alalalalalalalal\194\253\194\253\194\253alal\194\253\194\253\194\253\194\253alalalalalal\194\253alalalalalalal\194\253alalalalalalalalal\194\253\194\253alalalalal\194\253alalalalalal\194\253alalalalalalal\194\253alalalalalalalalal\194\253\194\253alalalalal\194\253alalalalalalalalalalalalalal\194\253alalalalalalalalal\194\253\194\253alalalalal\194\253alalalalalal\194\253alalalalalalal\194\253alalalalalalalalal\194\253a\144alalalalal\194\253alalalalalal\194\253alalalalalalalalalalalalalalalalal\194\253\194\253alalalalal\194\253alalalalalal\194\253alalalalalalalalal\194\253alalalalalalal\194\253\194\253alalalalal\194\253alalalalalal\194\253alalalalalalalal\194\253\194\253alalalalalalal\194\253\194\253alalalalal\194\253alalalalalal\194\253alalalalalalal\194\253\194\253\194\253alalalalalalal\194\253\194\253alalalalal\194\253alalalalalal\194\253alalalalalalal\194\253\194\253alalalalalalalalal\194\253alalalalalalalalalalalalalalalalalalalal\194\253alalalalalalalalalal\194\253alalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalalal"
img_hi = image.new(img_hi_src) img_hi_reverted=image.new(mirror_img(img_hi_src, 32, 32))
function on.paint(gc) gc:drawImage(img_hi, 10, 10) gc:drawImage(img_hi_reverted, 10, 100) end
36
« on: March 25, 2014, 04:54:37 am »
As TI-Nspire Lua framework is event based, it wouldn't be 'correct' to have blocking calls such as delay/sleep (hence they are not implemented). So your best bet would be using the timer and on.timer event (possibly in combination with timer.getMilliSecCounter, depending on what you have to do).
37
« on: March 17, 2014, 12:28:27 pm »
Since you can install Ndless 3.6 without a computer (just reopen the installer) I don't really think that it's such a big issue. So J and K devices are still pretty free in my opinion
38
« on: January 16, 2014, 11:43:40 am »
Yeah, well it's cutting the Lua header off. There are some interesting bytes in there you know ;P But as we only need the source code I have to extract just what I need.
39
« on: January 16, 2014, 07:12:46 am »
Here is a function that returns the source of the current document:
function getSource() return (string.dump(getSource):sub(14):gsub("-- %TI.SCRIPTAPP.*$", ""):gsub("%z", "")) end
40
« on: January 15, 2014, 04:04:01 pm »
I've implemented some monospace routines that you can find in LuaTerm 2.0 http://ourl.ca/19543Fullscreen requires some little tricks, because it's not officially supported. If you draw using the gc from platform.withGC (while being in on.paint) you can go fullscreen. On 3.1 you need to to call gc:begin(), do what you want to draw in fullscreen, and then call gc:finish(). On 3.6 the withGC trick doesn't work anymore and you have to use the 1.0 apiLevel together with the 3.1 code to be able to do it.
42
« on: January 10, 2014, 02:16:08 pm »
Hi there! Glad to see yet another Lua code join the forums!  You can use Luna for that: http://www.ticalc.org/archives/files/fileinfo/441/44113.html. It's a command line based tool that will just do the job. Also, you can use my buildtools to have the ability to include files, making life sometimes a bit easier: https://github.com/jimbauwens/ETK/tree/master/buildtools. Looking forward to your projects  Edit: sorry, misread the fact that you want to view the files. You can just keep the software open and issue a command to open the tns file that is build using Luna.
43
« on: January 09, 2014, 04:44:56 pm »
Hmm, pretty strange issue here. Can you try to 'force' your D2Editor to be visible?
self.ed:setVisible(true)
Also, the gc context you're giving is the current one right? (not saved or generated with platform.withGC/gc).
44
« on: January 04, 2014, 06:57:32 pm »
Was that with GCC? I wonder how TCC would do.
45
« on: January 04, 2014, 05:56:24 pm »
Hello  Great to see yet another Lua coder join the forums!
Pages: 1 2 [3] 4 5 ... 125
|