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 - Levak
Pages: 1 ... 37 38 [39] 40 41 ... 68
571
« on: September 25, 2011, 07:45:32 am »
I guess that blending Luna 0.1 and 0.2 will solve the problem since Luna 0.1 used to work and sources are quite identical for this part.
572
« on: September 24, 2011, 05:29:55 pm »
I can control its brightness but I can't go under 0.48V and upper to 2.18V on CX =/ I manage to make a PWM to toggle the light on/off smoothly
Source Code:
-- PWM system by Levak 2011 time.start(0.01) i=1 d=1 w=20
function on.create() time.start(0.01) end
function on.paint(gc) gc:drawString("luminosity : "..(i/w*100).."%", 0, 0, "top") gc:drawString("step (up/down: "..math.abs(d), 0, 20, "top") gc:drawString("width (+/-): "..w, 0, 40, "top") end
function on.timer() print(string.rep(string.rep("\001", i)..string.rep("\127", w-i), 100)) if i < 1 or i > w then d = -d end i = i + d platform.window:invalidate() end
function on.arrowKey(key) if key == "down" then d = d - (d < 0 and -1 or 1) elseif key == "up" then d = d + (d < 0 and -1 or 1) end platform.window:invalidate() end
function on.charIn(ch) if ch == "+" then w = w + 1 elseif ch == "-" then w = w - 1 end platform.window:invalidate() end
573
« on: September 24, 2011, 02:57:47 pm »
Lol. Does the CX have a backlight?
Yes =)
Then it can be used for a flashlight like the flashlight apps for smartphones. Is the brightness adjustable?
Also Yes, but not as flash as this LED...
574
« on: September 24, 2011, 02:50:37 pm »
Lol. Does the CX have a backlight?
Yes =)
575
« on: September 24, 2011, 10:18:22 am »
And, by the way, what is the fastest way to draw faces ? With a lot of gc:fillRect(x,y,1,height) ? Or with gc:fillPolygon ?
Hummm ... I really don't know, but let's think ... - Lua methods are implemented in C directly in the OS. - how a fillpolygon method works ? by filling horizontal or vertical lines. I don't know other methods. - How a fillRect method works ? by filling hozintal or vertical lines. Basicly it uses the same underground methods don't you think ? So I guess using fillPolygon is smarter. It is the one I use with Make3D
576
« on: September 24, 2011, 10:10:08 am »
On my Clickpad. Which one is the slowest ?
The CX =) Computer Software > ClickPad/TouchPad > CX
577
« on: September 24, 2011, 10:07:56 am »
On CX ? ClickPad/TouchPad ? Computer Software ? Because each of those values are differents =)
578
« on: September 24, 2011, 09:36:30 am »
Note : it is fast without fill-face-algorithms If you're not sure of the speed (because 100fps is really fast) just make an animation of a turn around, like 10 turns, and calculate the time it took. Then, calculate the number of frames it requires to make this turnaround. Like if the increment is 5°, it will take 360/5 frames to make a complete turn. And then : fps=(number of frames)/(seconds)
579
« on: September 23, 2011, 07:18:33 pm »
580
« on: September 21, 2011, 05:52:05 pm »
582
« on: September 18, 2011, 08:18:49 am »
NUUUUUUUUU
583
« on: September 18, 2011, 06:59:00 am »
South of Paris, France France4evR !
584
« on: September 15, 2011, 06:35:26 pm »
Looks nice, but the advertisment (in the soutien financier section) doesn't show up. (Although I guess those with their ad blocker won't mind)
I know about that, I was talking about it to Adriweb the past 20 minutes but it seams that he left ... so I posted the news
585
« on: September 15, 2011, 06:19:42 pm »
TI-Planet is now faster with an asynchronous loading of lateral panels The tchat has been moved into the central panel for visual optimisations http://tiplanet.org/forum/viewtopic.php?p=116222#p116222Hope it will be better for everyone =)
Pages: 1 ... 37 38 [39] 40 41 ... 68
|