Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
A simple animation Best Regards, Davide File Attachment(s): Davide Carpi attached the following image(s): |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
4 users thanked Davide Carpi for this useful post.
|
on 09/07/2013(UTC), on 09/07/2013(UTC), on 10/07/2013(UTC), on 11/07/2013(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/07/2010(UTC) Posts: 437 Location: Beer-Sheva Was thanked: 520 time(s) in 288 post(s)
|
Beautiful animation: To reduce the computation time can be operators "for", which do not depend on time, move out of the function cloc (s). Best Regards,Ber7.
|
2 users thanked Ber7 for this useful post.
|
on 10/07/2013(UTC), on 10/07/2013(UTC)
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
Thank you ber, this make the script faster and easier to read Best regards, Davide P.S. worksheet updated |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/07/2010(UTC) Posts: 437 Location: Beer-Sheva Was thanked: 520 time(s) in 288 post(s)
|
Davide,if your program to change the settings a bit, we get "real" analog clock (all the arrows are moving continuously). Best Regards, Ber7
|
2 users thanked Ber7 for this useful post.
|
on 11/07/2013(UTC), on 11/07/2013(UTC)
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
I see, wonderful |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Ber7 Beautiful animation: To reduce the computation time can be operators "for", which do not depend on time, move out of the function cloc (s). Best Regards,Ber7. Glorious old vintage, before I joined Smath. More elegant needles in there ... needs be animated attach]31143[/attach]
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 249 Location: Cali, Colombia Was thanked: 87 time(s) in 66 post(s)
|
|
2 users thanked oscampo for this useful post.
|
on 18/07/2019(UTC), on 19/07/2019(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,370 Was thanked: 829 time(s) in 525 post(s)
|
Hola Oscar. Very nice effects.
You can improve it multiply Play() by 1000 or something else but big. This avoid the horizontal purple line in the clock.
Also you define the location of the files as "D:\sound.wav". Using 1000*Play("sound.wav" ) searches sound in the same directory of the SMath file.
Finally notice that your blue hours hand jumps between hours, but not follow the actual movement of an hours hand clock. You need to take 1/2-1/6*el(NOW,1)-el(NOW,2)/600 as the arguments for sin, cos functions for place it between exact hours considering the minutes too.
Best regards.
Alvaro.
|
2 users thanked Razonar for this useful post.
|
on 19/07/2019(UTC), on 19/07/2019(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 249 Location: Cali, Colombia Was thanked: 87 time(s) in 66 post(s)
|
Originally Posted by: Razonar Hola Oscar. Very nice effects.
You can improve it multiply Play() by 1000 or something else but big. This avoid the horizontal purple line in the clock.
Also you define the location of the files as "D:\sound.wav". Using 1000*Play("sound.wav" ) searches sound in the same directory of the SMath file.
Finally notice that your blue hours hand jumps between hours, but not follow the actual movement of an hours hand clock. You need to take 1/2-1/6*el(NOW,1)-el(NOW,2)/600 as the arguments for sin, cos functions for place it between exact hours considering the minutes too.
Best regards.
Alvaro. Thanks for your suggestions Also I considering the seconds in the movement of the minutes hand for a more realistic appearance. I've updated the file and I uploaded the new one, you can check it here. Edited by user 20 July 2019 00:26:23(UTC)
| Reason: Not specified
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.