Does anyone know of a good place to research hints or "cheats" in Lua to help me? I've been creating various watchfaces, but having major issues in trying to get the hour and minute hands to work properly. I feel that i don't necessarily need to learn all of Lua programming (unless you experts think i do). The issue is when i have the minute markers in an arc (and not a full 360 degrees), and the minute hand is not centered. I hope that makes sense.
For example, i have a face i'm working on where the hour numerals (1-12, or actually 0-12) are an arc on the face starting at approx. 296 degrees and ending at 64 degrees. the "6" is at 180 degrees, but the watch hand is at a 64 value on the Y axis (0 on the X axis). Then to complicate matters, for the same hour numerals, the hour hand is at 101 on the Y axis (and 0 on the X axis). I can't seem to figure out a formula that will allow both hands to run accurately.
Here's the image with the hands i'm trying to work out.
Anyone? I would really love to finish this one.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thank you for your help, but I really don't quite understand your formulas and how to translate them into WM. I feel like such a N00b, and that i need to be a math major or something.
... it's something like this :
Code:
rotation="296-0.644444*{drh}-math.atan(math.sin(5.16617-0.0112477*{drh})/([COLOR="red"]2[/COLOR]+math.cos(5.16617-0.0112477*{drh})))*57.2958"
where :
2=R/e
I think that did the trick. Thank you so much!
I haven't understood very well the motion of the minute hand in your example .
Supposing it's working in the standard way ( only off-centered ), I have tried this one :
That seems to work much better for the hour hand. Thank you! Any way you could do the same for the minute hand? In a nutshell, i just want the minute hand to move just as the hour hand does, in a counter-clockwise rotation. In the "Prova-eccentrico" you gave, the minute hand is still moving 360 degrees clockwise. I just feel like i need to be a math whiz at this, or i'm just so old and so far removed from my school days that i can't wrap my brain around the math involved to a point where i simply can't adjust the formula you gave for the hour hand to apply to the minute hand. Either way, you're a lifesaver!
Thank you again!!
... :good: :
You da man!! Thank you!!!
Related
Just thought I'd attempt to contribute something...
I finally figured out how to make a theme (signing and all, woo!)
So I made an Abercrombie & Fitch theme (It was requested so I thought I'd waste time on photoshop, luckily I was successful at signing. In result, I got to work little by little being able to view results on my white G1)...
So these aren't technically screenshots (i'm very slow, haven't figured that out yet). So i just got all the images and made a "preview" via photoshop.
Home Screen 001 :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Boot Screen :
As of right now, It's just an idea. If you're not interested... no problem... Just for those who are.
Also, I kept stock icons...
Me preferably.... I don't like when my icons are customize due to the fact of mis-match when you download new apps.
Any criticism is taken maturely. <3
P.s.... Ignore the "2:47 am" on the bootscreen image. Like i said, I photo shopped the previews. (unprofessionally, apparently).
Nice, not my cup of tea but well done none the less. The more themes the better, including niche themes like this one.
glad someone made it.
Nice to see someone could help out a fellow xda-er instead of criticizing the request. I would say that everyone here has something on their G1 that someone else has no use for. Like a demonic stuffed doll. But for some reason the person requesting a brand name that 90% of people their age probably wear is somekind of freak. Thank you to the op. Even though its not for me, but neither is the rolex watch.
I was sorta confused by the original request as it seems that a wallpaper would be sufficient. You have however done a good job of making a few subtle changes to make it a personalized theme that fits the request. Kudos to you...
now can we have Hollister and AE themes too?
this is cool,nice and cleanly done...not my thing either but im glad u helped someone out. hopefully one of us can do the same 4 ya
I sometimes need DOZENS of
next next next next try fail try fail next next next next next try
- attempts ... just to make one posting. *meh*
Please lower the distortion level of the letter garbage that is presented to us.
It not only creates very bad vibes in me, it actually hurts my brain.
Today, when really desperate, I tried the audio version. That is even worse.
What about introducing a completely different scheme. Some sentence in written words that represents a mathematical formula that we have to solve, perhaps with random typos to hinder a clever programmer to override that? "One plust sefen minos four is what? Type it as a number. "
Or whatever. There must be better ways than the current despair.
Rant over
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
EDIT: Other than that - what a GREAT forum! I love it.
trying out my new signature
thx a lot! ... I aaaammmm freeeeee ..... ehhhm, not quite.
... and ... something happened. Just now.
I don't have to input any captchas anymore. :victory:
Thank you, unknown forum master. THAT solved it.
:highfive: Enjoy whatever you do.
EDIT:
"new users must wait four minutes between posts. Sorry for the inconvenience!"
please for the love of....
First time user of the site and I mean seriously it just took me 20 tries to get a captcha that I could read with some confidence and finally succeed. Been lurking a long time... I'm scarcely going to post much if I have to keep dealing with that captcha. It would be a shame because I love the content on xda-devs SO MUCH. I want to participate. But this is seriously ridiculous.
OMG IMPOSSIBLY ANNOYING ICING ON THE POOP CAKE RIGHT HERE:
Session expired. Please verify again.
Verification expired
Click to expand...
Click to collapse
...so that seriously just happened as I was leveling the above complaint.
I know replacing the captcha code will be non-trivial so lets start here: Please for the love of god at LEAST put the damn captcha that at the bottom of the form if its going to expire!
I am trying to make a watch face.
The hours dial is not a full 360 (nor with the minutes or seconds) I have a dial where zero starts at -120 degrees and has 12 segments that ends with the number 12 at 140 degrees
I am failry new to LUA so I am tring to figure out how to have the hour marker only ulitze that segment instead of a full 360 circle, where the AM/PM transitions goes from the 12 (at 140 degrees) and then switches over to the 00 (zero, at -120 degrees) I also need to account for the fact the 12 AM or PM is not at the top (360 degree mark) and is at the -120 mark.
Is this something I can do?
I am basically trying to l make a face liken to this one
http://trendblog.net/make-custom-moto-360-watch-face-watchmaker/
Its called a retrograde complication in real watch terms. You have to think about it in degrees, not hours. Watchmaker will take care of the hours part (or minutes part) for you. You're twisting the whole thing counterclockwise by 120 degrees, and you're deleting YYY degrees of stuff from the circle. So let's say that you want to remove a 90 degree chunk from the circle then you're left with a 270 degree arc (360-90=270). 270/360 equals 0.75 for my example. So your hourhand rotation code would be something like this:
({drh}*0.75)-120
Adjust the values for your design.
theevilshiftkey said:
Its called a retrograde complication in real watch terms. You have to think about it in degrees, not hours. Watchmaker will take care of the hours part (or minutes part) for you. You're twisting the whole thing counterclockwise by 120 degrees, and you're deleting YYY degrees of stuff from the circle. So let's say that you want to remove a 90 degree chunk from the circle then you're left with a 270 degree arc (360-90=270). 270/360 equals 0.75 for my example. So your hourhand rotation code would be something like this:
({drh}*0.75)-120
Adjust the values for your design.
Click to expand...
Click to collapse
That makes sense. I am removing 100 degrees though which leaves me at .722222222222222 ect, do I need to remove a more easily divisible chunk or will ({drh}*0.722222)-120 be accurate enough
That will be plenty accurate.
Figured it out, thanks a ton man
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello Guys,
I am just getting into Android app dev... I am on my second app, the first was an Audio Recording app. This one is a Trivia app - I have a database with over 10k questions. I started coding and now I am brain storming design ideas, thus far I have done this mockup, but it seems too simple to me.. I need more excitement, something that would turn onn the user (yes, turn them onn so they want to play more) - If you have any ideas or suggestion please feel free - I am all ears.
Andre
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I would start by thinking of ways to make the choosing of the category a little more challenging. That would then keep the player on their toes and not able to repeatedly choose the same topic which they are "good" at and keep your questions from being repeated so often.
Research for some ideas, think about old game shows like press your luck for example which has cubes around the perimeter of the screen and you have to press a button to stop on a category, bonus points, or one which takes point away. < I'm sure you couldn't set up 100% this way because it would infringe on the game.
You could even have an idea like "choose a door". have 4 "doors" and behind three of the doors are legit categories which are randomly chosen and behind the 4th door, also randomly placed, is a monster or something who eats X amount of points from your score.
Just ideas... hope this gets you started!
zrollins said:
I would start by thinking of ways to make the choosing of the category a little more challenging. That would then keep the player on their toes and not able to repeatedly choose the same topic which they are "good" at and keep your questions from being repeated so often.
Research for some ideas, think about old game shows like press your luck for example which has cubes around the perimeter of the screen and you have to press a button to stop on a category, bonus points, or one which takes point away. < I'm sure you couldn't set up 100% this way because it would infringe on the game.
You could even have an idea like "choose a door". have 4 "doors" and behind three of the doors are legit categories which are randomly chosen and behind the 4th door, also randomly placed, is a monster or something who eats X amount of points from your score.
Just ideas... hope this gets you started!
Click to expand...
Click to collapse
Wooow!!! - thank you very much, waaaay more than I bargained for. I like the ideas, especially the door part (Will be implemented). The more I work on this app the more I feel as if releasing it prematurely would be typical and that thought motivates me to work even harder on implementing unique + rich features..
Thanks alot!!! :good:
Hey All,
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It seemed like an impossible task. To get more the two audio channels into and out from the Pi over the GPIO header. Lots of people wanted that functionality but no one could work out how to do it. I decided this product would have the potential to completely enable and transform other peoples projects. Not only, that if it could be done on the Pi, it could be done on most other embeded boards. It would empower people by solving what seemed impossible. Beyond that, the outcomes for the developing world would be to put an ultra low cost multitrack recorder into the hands of people who otherwise may never be able to afford it - a sub $150 professional grade multitrack recorder. Who knows what people would invent with it !
I put together a plan and began hacking from paradigm to paradigm, making small incremental steps. It felt like I was building a rocket going to the moon for the first time ! No one ever thinks of low level hardware/software hacking as sexy, so it never makes the news
After months and months of struggling, first with purely analogue electronics, ECL logic and all sorts of tricks, I got really close. Sooo close I could sense the signals were going in the right direction - it just needed a little more. But that little more certainly wasn't going to come from analogue electronics alone. I had to change directions.
I decided to learn VHDL and started using FPGAs. On the weekends, whilst guarding my daughter's infant sleep cycles, I would read free range VHDL on my phone or laptop, gradually grasping this non procedural way of "the hardware". Finally after months, at the digital hardware level, I was able to get 8 channels of audio into and out from the Pi hat. Eureka! It is incredibly reliable. So functionally attractive and reliable that it had to be let out of the box ! And so it began ....
Come join the fun and checkout the Audio Injector Octo Pi kickstarter.
Matt
p.s. It is arguable that $150 is still well out of reach for a lot of people in developing nations.
so you made an 8 track player that has hdmi? thats awesome.
So close to what I'm looking for... an 8 channel audio ADC to HDMI LPCM converter.